
BrianT.46492 (Colorado General Assembly) asked a question.
We are integrating okta with a custom Spring application using OIDC. Okta sets the userNameAttibuteName to "sub" when authenticating; therefore, when we call authentication.getName() on the Oauth2 token, we get the actor id instead of the actual name of the user. Is there a way to override this to use the actual "name" attribute as opposed to the "sub" attribute?

Hi, @BrianT.46492 (Colorado General Assembly)
Thank you for posting on our Community page!
My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Thank you for reaching out to our Community and have a great day!
_____________________________________________________________________________
The October issue of the Okta Community is here and packed with tips on certification, how to earn badges, and new releases. Let us help you stay connected.
_____________________________________________________________________________
If my answer helped, remember to select it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
_____________________________________________________________________________