You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error while attempting to authenticate a user that has been successfully created on the Okta server.
>>> okta_backend.authenticate(username, password)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/shetty/work/authentication/models.py", line 136, in authenticate
return auth_engine.authenticate(username, password)
File "/Users/shetty/work/authentication/auth_okta.py", line 35, in authenticate
auth_result = auth_client.authenticate(username=username, password=password)
File "/Users/shetty/pyenv/src/okta/okta/AuthClient.py", line 41, in authenticate
response = ApiClient.post_path(self, '/', request, params=params)
File "/Users/shetty/pyenv/src/okta/okta/framework/ApiClient.py", line 88, in post_path
return self.post(self.base_url + url_path, data, params)
File "/Users/shetty/pyenv/src/okta/okta/framework/ApiClient.py", line 67, in post
if self.__check_response(resp, attempts):
File "/Users/shetty/pyenv/src/okta/okta/framework/ApiClient.py", line 102, in __check_response
raise OktaError(json.loads(resp.text))
OktaError: Authentication failed
The text was updated successfully, but these errors were encountered:
Sorry for jumping the gun. The user on the Okta server was in 'Reset Password' and hence the error. This method works when the user is in the 'active' state.
Following is my code snippet:
I get the following error while attempting to authenticate a user that has been successfully created on the Okta server.
The text was updated successfully, but these errors were encountered: