Minor improvement for oauth2 success handler
This commit is contained in:
parent
a4d651eb4b
commit
5d94e5e74a
@ -91,6 +91,7 @@ public class Oauth2AuthenticationSuccessHandler extends SimpleUrlAuthenticationS
|
||||
clearAuthenticationAttributes(request, response);
|
||||
getRedirectStrategy().sendRedirect(request, response, baseUrl + "/?accessToken=" + accessToken.getToken() + "&refreshToken=" + refreshToken.getToken());
|
||||
} catch (Exception e) {
|
||||
clearAuthenticationAttributes(request, response);
|
||||
getRedirectStrategy().sendRedirect(request, response, baseUrl + "/login?loginError=" +
|
||||
URLEncoder.encode(e.getMessage(), StandardCharsets.UTF_8.toString()));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user