-
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
11 changed files
with
126 additions
and
49 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
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
40 changes: 40 additions & 0 deletions
40
src/main/java/io/cos/cas/osf/web/support/OsfCasSsoErrorContext.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,40 @@ | ||
package io.cos.cas.osf.web.support; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* This is {@link OsfCasSsoErrorContext}. | ||
* | ||
* Stores detailed error information, which can be prepared and put into flow before raising an exception. Extends {@link Serializable} | ||
* so that it can be put into and retrieved from the flow context conveniently. | ||
* | ||
* @author Longze Chen | ||
* @since 23.2.0 | ||
*/ | ||
@AllArgsConstructor | ||
@Getter | ||
@NoArgsConstructor | ||
@ToString | ||
@Setter | ||
public class OsfCasSsoErrorContext implements Serializable { | ||
|
||
private static final long serialVersionUID = -1366351087792035267L; | ||
|
||
private String handleErrorName; | ||
|
||
private String errorMessage; | ||
|
||
private String ssoEmail; | ||
|
||
private String ssoIdentity; | ||
|
||
private String institutionId; | ||
|
||
private String institutionSupportEmail; | ||
} |
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 |
---|---|---|
|
@@ -708,10 +708,15 @@ screen.institutionssoattributeparsingfailed.message=\ | |
screen.institutionssoduplicateidentity.message=\ | ||
Your request cannot be completed at this time due to an error caused by duplicate SSO identity. \ | ||
Please contact <a style="white-space: nowrap" href="mailto:[email protected]">Support</a> for help. | ||
screen.institutionssoselectivelogindenied.message=\ | ||
screen.institutionssoselectivelogindenied.standard.message=\ | ||
Your institutional account is unable to authenticate to OSF. Please check with your institution. \ | ||
If your institution believes this is in error, \ | ||
contact <a style="white-space: nowrap" href="mailto:[email protected]">Support</a> for help. | ||
screen.institutionssoselectivelogindenied.support.message=\ | ||
Your institutional account is unable to authenticate to OSF. \ | ||
Please contact <a style="white-space: nowrap" href="mailto:{0}">support at your institution</a> first. \ | ||
If your institution believes this is in error, \ | ||
contact <a style="white-space: nowrap" href="mailto:[email protected]">OSF Support</a> for help. | ||
screen.institutionssoosfapifailed.message=\ | ||
Your request cannot be completed at this time due to an unexpected error. \ | ||
Please <a style="white-space: nowrap" href="{0}">return to OSF</a> and try again later. \ | ||
|
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