GUACAMOLE-323: Merge login help test for CAS.

This commit is contained in:
Michael Jumper
2017-06-23 14:36:40 -07:00
3 changed files with 19 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.form.Field;
import org.apache.guacamole.net.auth.Credentials;
import org.apache.guacamole.net.auth.credentials.CredentialsInfo;
import org.apache.guacamole.net.auth.credentials.GuacamoleInvalidCredentialsException;
import org.apache.guacamole.net.auth.credentials.GuacamoleInsufficientCredentialsException;
import org.apache.guacamole.auth.cas.conf.ConfigurationService;
import org.apache.guacamole.auth.cas.form.CASTicketField;
import org.apache.guacamole.auth.cas.ticket.TicketValidationService;
@@ -89,7 +89,8 @@ public class AuthenticationProviderService {
}
// Request CAS ticket
throw new GuacamoleInvalidCredentialsException("Invalid login.",
throw new GuacamoleInsufficientCredentialsException(
"LOGIN.INFO_CAS_REDIRECT_PENDING",
new CredentialsInfo(Arrays.asList(new Field[] {
// CAS-specific ticket (will automatically redirect the user

View File

@@ -9,6 +9,10 @@
"org.apache.guacamole.auth.cas.CASAuthenticationProvider"
],
"translations" : [
"translations/en.json"
],
"js" : [
"casModule.js",
"casController.js",

View File

@@ -0,0 +1,12 @@
{
"DATA_SOURCE_CAS" : {
"NAME" : "CAS SSO Backend"
},
"LOGIN" : {
"FIELD_HEADER_TICKET" : "",
"INFO_CAS_REDIRECT_PENDING" : "Please wait, redirecting to CAS authentication."
}
}