thomasdarimont / keycloak-extension-playground

Simple project environment for creating custom Keycloak extensions
Apache License 2.0
659 stars 170 forks source link

use remember me cookie to start authentication #32

Open louisgls opened 3 years ago

louisgls commented 3 years ago

thank you for all the extensions. I'm currently using the dynamic idp redirector extension which is great but I would also like the email to be retrieved from the "remember me" cookie if it is set instead of the form. Do I need to create my own extension or is that already implemented somewhere ?

I have tried different things like the "script" execution in keycloak, I can retrieve the email but I'm not sure what I have to do next to make the extension work. Set the user in the "context" by looking for users with this email ?

Authentication flow could be either :

Username form Dynamic IDP Redirector

OR

Remember me Cookie Dynamic IDP Redirector