CAS server - 6.2.3
CAS client - 3.6.2
We are not getting UID attribute in client side. We use CAS 2 protocol i,e Cas20ProxyReceivingTicketValidationFilter.
Upon redirection, we are getting ticket value(ticket=) in url and after successfull ticket validation got 302 http status code. Till this, it is working as expected.
But we are not getting UID attribute in client side.
My JSON file :
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"name" : "web",
"description" : "Allows HTTP(S) and IMAP(S) protocols",
"id" : 10000001,
"evaluationOrder" : 1,
"usernameAttributeProvider" : {
"@class" : "org.apereo.cas.services.PrincipalAttributeRegisteredServiceUsernameProvider",
"usernameAttribute" : "uid"
},
"attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllowedAttributeReleasePolicy",
"allowedAttributes" : [ "java.util.ArrayList", [ "uid", "email", "CN" ] ],
}
}
DEBUG LOG:
2021-02-16 12:57:51 [DEBUG] org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy – Using principal attribute repository [DefaultPrincipalAttributesRepository()] to retrieve attributes
2021-02-16 12:57:51 [WARN] org.apereo.cas.authentication.attribute.PrincipalAttributeRepositoryFetcher – No person records were fetched from attribute repositories for [{principal=a...@test.com, userStatus=[ACTIVE], tryCount=[0:1613505872733], username=a...@test.com}] 2021-02-16 12:57:51 [DEBUG] org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy – Found principal attributes [{userStatus=[ACTIVE], tryCount=[0:1613505872733]}] for [a...@test.com] 2021-02-16 12:57:51 [DEBUG] org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy – Attribute policy [ReturnAllowedAttributeReleasePolicy] allows release of [{}] for [a...@test.com] 2021-02-16 12:57:51 [DEBUG] org.apereo.cas.services.AbstractRegisteredServiceAttributeReleasePolicy – Default attributes for release are: [[]]
Tried adding these entries also:
cas.authn.ldap[0].principal-attribute-list=uid,mail,cn
cas.authn.attribute-repository.default-attributes-to-release=uid,mail,cn
It doesn't help.
Am I doing something wrong here? CAS2 protocol release UID right?
Kindly help me with some syntax:-(
Atleast want to know issue is from server side or client side.