Hi Jérôme,
Thank you for your response. Upon further investigation, I realized that the sub claim is not directly added to the profile through the access token but via the callUserInfoEndpoint method, where an additional request to the user info endpoint is made. The successful response of this response is then parsed and the claims added to the user profile.
My question is regarding the scenario where the sub claim is retrieved from the user info endpoint but is not set as the ID in the UserProfile. I understand that the OidcProfileCreator assumes the access token is an opaque identifier and doesn't parse it for claims. However, given that the sub claim is available from the user info endpoint, should it not be set as the ID in the profile?
Is there a specific reason why the sub claim from the user info endpoint is not used to set the profile ID, or might this be an oversight? Any further insights would be greatly appreciated.
Best regards,
Norman
--
You received this message because you are subscribed to the Google Groups "Pac4j development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pac4j-dev/509d3471-7b49-4be8-b860-412dd5022884n%40googlegroups.com.
Hi,
thank you for the quick fix.
I have tested the version 5.7.6-SNAPSHOT, and I can confirm that it works as expected. The profile now has an ID.
Thanks again.
Best regards,
Norman
To view this discussion on the web visit https://groups.google.com/d/msgid/pac4j-dev/371a4168-fa86-43b9-8973-ae6cbfddfea4n%40googlegroups.com.