Administrating Authorization Servers using Java SDK

Can the below operation be achieved using the Java SDK?

Security -> API -> Authorization Servers -> Add Authorization Server

Please advise. This is required to automate OKTA configurations.

While our Java Management SDK does not include a specific method for this, you can create Authorization Servers via API calls

e.g.

curl -v -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: SSWS ${api_token}" \
-d '{
  "name": "Sample Authorization Server",
  "description": "Sample Authorization Server description",
  "audiences": [
    "api://default"
  ]
}' "https://${yourOktaDomain}/api/v1/authorizationServers"

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