Skip to content

Commit

Permalink
fix: allow to redirect on initialUri when using SAML - EXO-66292 - Me…
Browse files Browse the repository at this point in the history
…eds-io/meeds#1104

Before this fix, with SAML, user is not redirected on initialUri if he is not connected to IDP after successul authentication
This modification ensure to add the initialURI parameter in the next request after the /sso request
  • Loading branch information
rdenarie committed Sep 20, 2023
1 parent 989cee3 commit 90de301
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ public void doFilter(ServletRequest request, ServletResponse response,
*/
protected String getLoginRedirectURL(HttpServletRequest httpRequest)
{
return this.loginUrl;
String url = this.loginUrl;
if (httpRequest.getQueryString() != null) {
url = url + "?" + httpRequest.getQueryString();
}
return url;
}

}

0 comments on commit 90de301

Please sign in to comment.