you should remove the attributeReleasePolicy and replace it with

  "scopes" : [ "java.util.HashSet",
    [ "openid", "profile", "email", "address" ]
  ]


Le jeu. 25 juin 2020 à 15:59, Jakub Fridrich <
[email protected]> a écrit :

> I tried adding to Release policy (to service), but sub is not showing
> still.
> "attributeReleasePolicy" : {
>     "@class" :
> "org.apereo.cas.oidc.claims.OidcProfileScopeAttributeReleasePolicy",
>     "allowedAttributes" : [ "java.util.ArrayList", [ "sub", "first_name",
> "last_name", "email" ] ]
>   }
>
>
>
> Dne čtvrtek 25. června 2020 13:04:33 UTC+2 Jakub Fridrich napsal(a):
>>
>> info: CAS 6.2.0-RC5 builded from cas-overlay-template
>>
>> Problem:
>> OpenID Connect in userinfo endpoint does not display required
>> attributes (as iss, sub, aud, exp) if claims are set.
>>
>> Scopes requested by client: openid, profile, email, address, phone
>> Claims requested by client: {"userinfo":{ "sub":null, "iss": null,
>> "name": null, "email": null, "first_name": null, "last_name": null }} or 
>> {"userinfo":{"name":
>> null, "email": null, "first_name": null, "last_name": null }}
>>
>>
>>
>>
>>
>> Service configuration:
>> {
>>   "@class" : "org.apereo.cas.services.OidcRegisteredService",
>>   "clientId": "XXX",
>>   "clientSecret": "XXX",
>>   "serviceId": "^https://xwikl.xxxserver.*";,
>>   "name": "XTest",
>>   "id": 5,
>>
>>   "attributeReleasePolicy" : {
>>    "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
>>   }
>> }
>>
>>
>> Dears any sugestions how to get in userinfo endpoint required fields
>> (iss, sub, aud, exp) ?
>>
> --
> - 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/4690ebe5-3250-4798-bd0c-9e0925526ebco%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/4690ebe5-3250-4798-bd0c-9e0925526ebco%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 
- 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/CAENLzaZbVoKvA-aqwG9njrOcXC8ae%2Bf7zXJ8MYOdP0g5BP%2BOTg%40mail.gmail.com.

Reply via email to