Java SDK Usage for OAuth 2.0 and OpenID Connect


A have a few questions about okta java SDK, and I couldn’t find anything about it in Okta Client SDK:

  • I am trying to retrieve user information from okta server. When using the API I make a call to /userinfo endpoint, passing a user token. How could I get this user information using client SDK? I couldn’t discover how get user info passing a bearer token.
  • How do I get tokens using client SDK (‘oauth2/default/v1/token’) endpoint (authorization_code, for example)?
  • Is there a way to retrive LinkedObjects ( using client SDK?
    Thank you

The Okta Java SDK ( is used for CRUD operations for Okta Resources (like users and groups).

If you are curious about OAuth 2.0 / OpenID Connect, I would check out this sample: