Jakub,

Are attributes being resolved? 
https://apereo.github.io/cas/6.4.x/integration/Attribute-Resolution.html

They will show up in the audit log

021-11-08 09:04:16,058 INFO  [       
org.aper.insp.audi.supp.Slf4jLoggingAuditTrailManager] - <Mon Nov 08 09:04:16 
PST 2021|CAS|{result=Service Access Granted, 
principal=SimplePrincipal(id=student.test101, attributes={cn=[test101 student], 
domain=[uvic.ca], eduPersonAffiliation=[alum, member, student, 
undergraduate_student, registered_student], 
eduPersonEntitlement=[urn:mace:uvic.ca:university:student-web-eligible, 
urn:mace:uvic.ca:university:unix_user, 
urn:mace:uvic.ca:university:adobe-eligible, 
urn:mace:uvic.ca:university:m365-eligible, 
urn:mace:uvic.ca:university:exo-eligible, 
urn:mace:uvic.ca:university:duo-eligible, 
urn:mace:uvic.ca:athletics:vikesrec-student], 
eduPersonPrincipalName=[[email protected]], 
mail=[[email protected]], sn=[student], username=[student.test101], 
uvicEduPersonNetLinkContactUpdateTimestamp=[20210903000426Z], 
uvicEduPersonSpridenID=[593]}), service=https://local.uvic.ca/mypage, 
requiredAttributes={}}|SERVICE_ACCESS_ENFORCEMENT_TRIGGERED|audit:unknown|127.0.0.1|127.0.0.1>
 [ajp-nio-127.0.0.1-8010-exec-6]

Ray

On Sun, 2021-11-07 at 02:20 -0800, Jakub Fridrich wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi.
II would need to use the CAS REST protocol, specifically the Credential 
Autentication (POST /cas/v1/users) method, with body 
username=battags&password=password&service=abcd.

This is currently ignore attributeReleasePolicy from service config. How can I 
set a release policy for the response from this request? I need uid, email, 
etc... attributes.

Thanks.

Service config:
{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "abcd",
  "name" : "abcd",
  "id" : 1,
  "attributeReleasePolicy" : {
    "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
  }
}

Current response from this request in attachment.



--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]<mailto:[email protected]>

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory 
the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose 
historical relationships with the land continue to this day.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/e567b1ff27e2189eaa4c367187b14a838c39b3d3.camel%40uvic.ca.

Reply via email to