Skip to content
Snippets Groups Projects
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
Branches
Tags
1 merge request!59Migrate to Pac4j framework for OAuth handling
Pipeline #8726 passed with warnings with stages
in 2 minutes and 23 seconds
......@@ -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);
}
}
......
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