Skip to content

Commit

Permalink
UPDATE to add a message asking to check Cognito user groups when the …
Browse files Browse the repository at this point in the history
…login is failed.
  • Loading branch information
ramesh-maddegoda committed Feb 12, 2025
1 parent 6de417a commit faaf000
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ def login(headers, query_params=None, user_claims=None,iam_role_arn=None):
except Exception as error:
logger.error(str(error))

if not redirect:
redirect = close(headers, f"Login Failed. Please check your Cognito user groups", status_code=401)

return redirect

def get_mwaa_client(role_arn, user):
Expand Down

0 comments on commit faaf000

Please sign in to comment.