Springboot get User Details in Security Context

Hi,

As a follow-up to this post: Okta - Add User details&token info to security context - Questions - Okta Developer Community, I was just wondering if there’s a sample project which is able to retrieve user details in the security context object of spring boot 3.4.2?

We can stuff user details into the token, but just wanted to see if we can more securely access them by calling the /userinfo endpoint.

I’m trying to use the user-info-uri property outlined in the above post but keep getting the standard claims: aud, scp, sub, uid, etc. back instead of the custom claims that I have configured through the /user-info endpoint.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.