[cas-user] Re: how to include authenticated user's roles in JWT?

2020-06-05 Thread dg
hey, thank you so much for suggesting. i search your suggestion and i found 
solution and explain there 
https://stackoverflow.com/questions/62155196/how-to-include-authenticated-users-roles-in-jwt/62215364#62215364

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/7bc060cc-c7e0-4324-89ca-b0690c1854fao%40apereo.org.


Re: [cas-user] Re: how to include authenticated user's roles in JWT?

2020-06-05 Thread Jérôme Steve
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  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
> 
> .
>

-- 
- 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.


Re: [cas-user] Re: how to include authenticated user's roles in JWT?

2020-06-05 Thread Jérôme Steve
Hello DG,

You have to pût it un the attributsrRepository from jour db or ldap. After
you can get it, in ths jwt token.

Something l'île this :
https://apereo.github.io/2019/11/04/cas62x-oauth-jwt-access-token/

Jérôme.


Le jeu. 4 juin 2020 à 16:25, dg  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
> 
> .
>

-- 
- 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/CAD6Knbwmg4t6xm9DQ0zFEfj%3Davd8mN%3D8O42TyDWRQM32aoNz2g%40mail.gmail.com.


[cas-user] Re: how to include authenticated user's roles in JWT?

2020-06-04 Thread dg
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.