Skip to content

Commit 92bdf23

Browse files
committed
Sync API error detail with CAS
1 parent 1a6efce commit 92bdf23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/institutions/authentication.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ def authenticate(self, request):
254254
message = f'Institution SSO Error: multiple SSO email [sso_email={sso_email}, sso_identity={sso_identity}, institution={institution._id}]'
255255
sentry.log_message(message)
256256
logger.error(message)
257-
# TODO: this requires a CAS hotfix to handle `detail='InstitutionMultipleSSOEmails'`
258-
raise PermissionDenied(detail='InstitutionMultipleSSOEmails')
257+
raise PermissionDenied(detail='InstitutionSsoMultipleEmailsNotSupported')
259258
# Attempt to find an existing user that matches the email(s) provided via SSO. Create a new one if not found.
260259
# If a user is found, it is possible that the user is inactive (e.g. unclaimed, disabled, unconfirmed, etc.).
261260
# If a new user is created, the user object is confirmed but not registered (i.e. inactive until registered).

0 commit comments

Comments
 (0)