amith dino
amith dino

Reputation: 49

How to get access token from Okta with spring pre-defined classes?

I have Okta App's client id and secret key and I would like to know how to generate access token using spring default classes and not by hitting the API endpoint.

Please provide the spring pre-defined classes to which I can provide the client id along with secret and the access token is generated.

Upvotes: 0

Views: 1443

Answers (1)

SpringUser
SpringUser

Reputation: 16

You are dealing with server to server authentication. You don't actually explicitly need access token, use oauth2resttemplate for all requests just to have things under control. You could implement as is from link: https://developer.okta.com/blog/2018/04/02/client-creds-with-spring-boot

Upvotes: 0

Related Questions