3

I am trying to authenticate a user through OKTA API.

I am following these steps:

  • make post request to /api/v1/authn providing user and password
  • given this is MFA, I then make another request to the /api/v1/auth/factors/{ID}/verify endpoint. This is successful and I get a session token.
  • finally, try to get an access token for a given app by making a get request to /api/v1/authorize
resp = requests.get("my-okta-url/api/v1/authorize", params=payload)

I get

resp <Response [405]>

 'errorLink': 'E0000022',
 'errorSummary': 'The endpoint does not support the provided HTTP method'
Vini
  • 223
  • 1
  • 3
  • 9
  • You may not have the implicit flow enabled, as I understand this is required for GET – Tom Aug 18 '20 at 01:23

1 Answers1

0

It seems that my organization does not acquired the feature from OKTA that allows to perform authentication through API.

I got this message when following the responses: The requested feature is not enabled in this environment

Vini
  • 223
  • 1
  • 3
  • 9