简体   繁体   中英

Sending Username/emailid in the saml req as NameID to Keycloak

We have a requirement to send Username/EmailId in the Subject/NameID field to the keycloak. Keycloak then receive that value in a custom authenticator and send it to the tokenvalidator for further flow. The idea here is to omit the step to ask user name from user again.

  1. In Keycloak I am not able to see NameID value since keycloak is not putting this in the client session. why?
  2. I can see that keycloak is parsing the Subject/Name ID field. How can I get this value in my custom Autheticator ?

Please let me know your suggestions and ideas

Looks like this is an issue in the existing keycloak code. created the issue and sent a pull request.

https://issues.jboss.org/browse/KEYCLOAK-3651

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM