Sorry in english,

You have to put it in the attributes repository from our db or your ldap
(or something else). After that you can get it in the jwt token.

Something like this :
https://apereo.github.io/2019/11/04/cas62x-oauth-jwt-access-token/

Jérôme.

Le jeu. 4 juin 2020 à 16:25, dg <ytetest...@gmail.com> a écrit :

> hello, i am really stuck with it. anybody experiencing a similar issue? or
> suggesting a solution?
>
> 1 Haziran 2020 Pazartesi 16:25:49 UTC+3 tarihinde dg yazdı:
>>
>> hello,
>>
>> i have configured cas as oauth2 server. after successfull login, it
>> returns JWT, but roles filed in jwt is always empty [].
>>
>> how can fetch and put authenticated user's role in JWT?
>>
>> thanks for helps.
>>
> --
> - 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 cas-user+unsubscr...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/db601ad7-3074-4d88-bb86-d3f90adc5181%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/db601ad7-3074-4d88-bb86-d3f90adc5181%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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD6KnbyjKyunXi4ePy67a9ZeuAr1uTgJ1zCDbU6kTPO9oWzoPw%40mail.gmail.com.

Reply via email to