Skip to content

Commit

Permalink
Merge branch 'hotfix/23.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Jul 7, 2023
2 parents 5ce8e80 + 4a5da49 commit 32bb4fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.

23.2.1 (07-07-2023)
===================

* Fix SSO error handling for inactive users

23.2.0 (06-25-2023)
===================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.google.gson.JsonParser;

import io.cos.cas.osf.authentication.credential.OsfPostgresCredential;
import io.cos.cas.osf.authentication.exception.InstitutionSsoAccountInactiveException;
import io.cos.cas.osf.authentication.exception.InstitutionSsoAttributeMissingException;
import io.cos.cas.osf.authentication.exception.InstitutionSsoAttributeParsingException;
import io.cos.cas.osf.authentication.exception.InstitutionSsoDuplicateIdentityException;
Expand Down Expand Up @@ -788,7 +789,7 @@ private OsfApiInstitutionAuthenticationResult notifyOsfApiOfInstnAuthnSuccess(
}
if (OsfApiPermissionDenied.INSTITUTION_SSO_ACCOUNT_INACTIVE.getId().equals(errorDetail)) {
LOGGER.error("[OSF API] Failure - Inactive Account: {}", ssoUser);
throw new InstitutionSsoDuplicateIdentityException("OSF API denies inactive account");
throw new InstitutionSsoAccountInactiveException("OSF API denies inactive account");
}
}
// Handle unidentified HTTP 403 FORBIDDEN failures
Expand Down

0 comments on commit 32bb4fa

Please sign in to comment.