-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
655 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
.../java/io/cos/cas/osf/authentication/exception/InstitutionSsoAccountInactiveException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.cos.cas.osf.authentication.exception; | ||
|
||
import lombok.NoArgsConstructor; | ||
|
||
import javax.security.auth.login.AccountException; | ||
|
||
/** | ||
* Describes an authentication error condition where institution SSO has failed | ||
* due to the OSF account is not active or not eligible for activation. | ||
* | ||
* @author Longze Chen | ||
* @since 23.1.0 | ||
*/ | ||
@NoArgsConstructor | ||
public class InstitutionSsoAccountInactiveException extends AccountException { | ||
|
||
/** | ||
* Serialization metadata. | ||
*/ | ||
private static final long serialVersionUID = -430454081442388569L; | ||
|
||
/** | ||
* Instantiates a new {@link InstitutionSsoAccountInactiveException}. | ||
* | ||
* @param msg the msg | ||
*/ | ||
public InstitutionSsoAccountInactiveException(final String msg) { | ||
super(msg); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...java/io/cos/cas/osf/authentication/exception/InstitutionSsoAttributeMissingException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.cos.cas.osf.authentication.exception; | ||
|
||
import lombok.NoArgsConstructor; | ||
|
||
import javax.security.auth.login.AccountException; | ||
|
||
/** | ||
* Describes an authentication error condition where institution SSO has failed | ||
* due to missing required attributes from IdP. | ||
* | ||
* @author Longze Chen | ||
* @since 23.1.0 | ||
*/ | ||
@NoArgsConstructor | ||
public class InstitutionSsoAttributeMissingException extends AccountException { | ||
|
||
/** | ||
* Serialization metadata. | ||
*/ | ||
private static final long serialVersionUID = 1412743002614665584L; | ||
|
||
/** | ||
* Instantiates a new {@link InstitutionSsoAttributeMissingException}. | ||
* | ||
* @param msg the msg | ||
*/ | ||
public InstitutionSsoAttributeMissingException(final String msg) { | ||
super(msg); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...java/io/cos/cas/osf/authentication/exception/InstitutionSsoAttributeParsingException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.cos.cas.osf.authentication.exception; | ||
|
||
import lombok.NoArgsConstructor; | ||
|
||
import javax.security.auth.login.AccountException; | ||
|
||
/** | ||
* Describes an authentication error condition where institution SSO has failed | ||
* due to attribute normalization or parsing failure. | ||
* | ||
* @author Longze Chen | ||
* @since 23.1.0 | ||
*/ | ||
@NoArgsConstructor | ||
public class InstitutionSsoAttributeParsingException extends AccountException { | ||
|
||
/** | ||
* Serialization metadata. | ||
*/ | ||
private static final long serialVersionUID = 4319114898092268727L; | ||
|
||
/** | ||
* Instantiates a new {@link InstitutionSsoAttributeParsingException}. | ||
* | ||
* @param msg the msg | ||
*/ | ||
public InstitutionSsoAttributeParsingException(final String msg) { | ||
super(msg); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...ava/io/cos/cas/osf/authentication/exception/InstitutionSsoDuplicateIdentityException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.cos.cas.osf.authentication.exception; | ||
|
||
import lombok.NoArgsConstructor; | ||
|
||
import javax.security.auth.login.AccountException; | ||
|
||
/** | ||
* Describes an authentication error condition where institution SSO has failed | ||
* due to duplicate SSO identity. | ||
* | ||
* @author Longze Chen | ||
* @since 23.1.0 | ||
*/ | ||
@NoArgsConstructor | ||
public class InstitutionSsoDuplicateIdentityException extends AccountException { | ||
|
||
/** | ||
* Serialization metadata. | ||
*/ | ||
private static final long serialVersionUID = 1412743002614665584L; | ||
|
||
/** | ||
* Instantiates a new {@link InstitutionSsoDuplicateIdentityException}. | ||
* | ||
* @param msg the msg | ||
*/ | ||
public InstitutionSsoDuplicateIdentityException(final String msg) { | ||
super(msg); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.