This article discusses the situation in which a 400 error is received while trying to authenticate with Okta using OpenID Connect (OIDC).
The Error Code is:
server_error
Error Description:
The requested feature is not enabled in this environment.
- Open ID Connect for Okta orgs without the API Access Management feature
- Okta Classic Engine
The base URL used for the authentication attempt is incorrect.
Using the URL of the form https://org.okta.com/oauth2/default/v1/authorize requires an additional paid feature of API Access Management, which is used for custom authorization servers.
Instead, use the URL https://org.okta.com/oauth2/v1/authorize to access the default authorization server for Okta without API Access Management.
