Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Never fatal.
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Elrod <[email protected]>
relrod authored and john-westcott-iv committed Nov 22, 2024
1 parent da69583 commit a421ac3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ansible_base/authentication/backend.py
Original file line number Diff line number Diff line change
@@ -37,7 +37,11 @@ def authenticate(self, request, *args, **kwargs):
last_modified = None if last_modified_item is None else last_modified_item.get('modified')

for authenticator_id, authenticator_object in get_authentication_backends(last_modified).items():
user = authenticator_object.authenticate(request, *args, **kwargs)
try:
user = authenticator_object.authenticate(request, *args, **kwargs)
except Exception:
logger.exception(f"Exception raised while trying to authenticate with {authenticator_object.database_instance.name}")
continue

# Social Auth pipeline can return status string when update_user_claims fails (authentication maps deny access)
if user == SOCIAL_AUTH_PIPELINE_FAILED_STATUS:

0 comments on commit a421ac3

Please sign in to comment.