Commit c2183aba authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Set a default URL for redirection after OAuth authentication

Since we do not use a SecurityFilter, the previously visited page is not
saved in the session.
parent af09579e
......@@ -144,6 +144,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
if (facebookEnabled || googleEnabled || twitterEnabled) {
CallbackFilter callbackFilter = new CallbackFilter(oauthConfig());
callbackFilter.setSuffix(OAUTH_CALLBACK_PATH_SUFFIX);
callbackFilter.setDefaultUrl(rootUrl + apiPath + "/");
http.addFilterAfter(callbackFilter, CasAuthenticationFilter.class);
}
}
......
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