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'