Using the Go SDK with client id / secret pair

I would like to access the Okta API using the Go SDK using a client id and client secret pair, is this possible?
I am able to use the SDK with an API token (using the WithToken ConfigSetter), but we would rather grant access via an application, rather than a user. I notice that there is a setter for WithClientId setter, but not for client secret.
Thank you

In order to use a Service application to get OAuth tokens to call Okta APIs, you will need to use private key JWT client authentication, as described here.

Our Go Management SDK does allow you to use this type of application, and you can set up your YAML config to include the private key and then set the client to use this authorization type.

1 Like

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