[keycloak-user] Fwd: Modify roles in Token after user login SPI

Sandeep Rai raisandeepkmr at gmail.com
Fri Jun 1 07:55:17 EDT 2018


Hi All,
Any idea how should I proceed with this ?
Any pointers or document ?
Regards

---------- Forwarded message ---------
From: Sandeep Rai <raisandeepkmr at gmail.com>
Date: Thu, 31 May 2018, 02:25
Subject: Modify roles in Token after user login SPI
To: <keycloak-user at lists.jboss.org>


Hi Community,
I'm trying to add more roles into the token after the token has been
generated following the isValid() return of the Authentication SPI.

I have a application which has SMS otp functionality. After the user has
verified the OTP I want to grant more roles to the user by adding those
roles into the token. But how do I modify the existing token or even renew
it with new roles ?
Is there a endpoint I can use to do so ? Or anyother ProviderInterface that
I can use to achieve this ?
Regards


More information about the keycloak-user mailing list