Search code examples
authenticationoauth-2.0openid-connectoktaokta-api

How to get okta user details/current session once authenticated in JAVA


In my JAVA web application, i am moving from redhat redhat SSO to OKTA.

I am able to redirect to OKTA server login page when my application URL is hit in the URL.OKTA server is being authenticated with the username and password entered and my application is redirecting to.

Now I am trying to find how to get that authenticated session or authenticated user details in java code.

Any help will be appreciated. Thanks.


Solution

  • yes, /userinfo helped me and got the user details from userinfo endpoint. Thank you Philipp.