Commit 82cdab53 authored by Daniel Gerhardt's avatar Daniel Gerhardt Committed by Tom Käsler

Temporarily revert to legacy SAML callback

Original callback: /auth/callback/saml
Legacy callback: /auth/callback/saml2?client_name=SAML2Client
parent 52104ad7
Pipeline #36219 failed with stages
in 0 seconds
......@@ -117,7 +117,7 @@ import de.thm.arsnova.security.pac4j.SsoCallbackFilter;
public class SecurityConfig extends WebSecurityConfigurerAdapter {
public static final String AUTH_CALLBACK_PATH = "/auth/callback";
public static final String OAUTH_CALLBACK_PATH = AUTH_CALLBACK_PATH + "/oauth";
public static final String SAML_CALLBACK_PATH = AUTH_CALLBACK_PATH + "/saml";
public static final String SAML_CALLBACK_PATH = AUTH_CALLBACK_PATH + "/saml2";
public static final String CAS_CALLBACK_PATH = AUTH_CALLBACK_PATH + "/cas";
public static final String CAS_LOGOUT_PATH = "/auth/logout/cas";
public static final String RUN_AS_KEY_PREFIX = "RUN_AS_KEY";
......@@ -638,9 +638,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
config.setAuthnRequestSigned(true);
config.setWantsAssertionsSigned(true);
final SAML2Client client = new SAML2Client(config);
client.setName(SAML_PROVIDER_ID);
client.setCallbackUrl(rootUrl + apiPath + AUTH_CALLBACK_PATH);
client.setCallbackUrlResolver(pathParameterCallbackUrlResolver());
client.setCallbackUrl(rootUrl + apiPath + SAML_CALLBACK_PATH);
/* Initialize the client manually for the metadata endpoint */
client.init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment