GUACAMOLE-1364: Correct naming of SAML auth field and translation.

This commit is contained in:
Michael Jumper
2021-11-25 18:26:31 -08:00
parent 817f19290d
commit ba93d17265
2 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
"LOGIN" : { "LOGIN" : {
"FIELD_HEADER_ID_TOKEN" : "", "FIELD_HEADER_ID_TOKEN" : "",
"FIELD_HEADER_SAML" : "", "FIELD_HEADER_STATE" : "",
"FIELD_HEADER_TICKET" : "", "FIELD_HEADER_TICKET" : "",
"INFO_IDP_REDIRECT_PENDING" : "Please wait, redirecting to identity provider..." "INFO_IDP_REDIRECT_PENDING" : "Please wait, redirecting to identity provider..."
} }

View File

@@ -110,7 +110,8 @@ public class AuthenticationProviderService {
URI authUri = saml.createRequest(); URI authUri = saml.createRequest();
throw new GuacamoleInsufficientCredentialsException("Redirecting to SAML IdP.", throw new GuacamoleInsufficientCredentialsException("Redirecting to SAML IdP.",
new CredentialsInfo(Arrays.asList(new Field[] { new CredentialsInfo(Arrays.asList(new Field[] {
new RedirectField("samlRedirect", authUri, new TranslatableMessage("LOGIN.INFO_IDP_REDIRECT_PENDING")) new RedirectField(AUTH_SESSION_QUERY_PARAM, authUri,
new TranslatableMessage("LOGIN.INFO_IDP_REDIRECT_PENDING"))
})) }))
); );