Merge branch 'master' of github.com:thingsboard/thingsboard
This commit is contained in:
commit
f3b4501b5a
@ -54,8 +54,11 @@ public class Oauth2AuthenticationFailureHandler extends SimpleUrlAuthenticationF
|
|||||||
throws IOException, ServletException {
|
throws IOException, ServletException {
|
||||||
String baseUrl;
|
String baseUrl;
|
||||||
String errorPrefix;
|
String errorPrefix;
|
||||||
|
String callbackUrlScheme = null;
|
||||||
OAuth2AuthorizationRequest authorizationRequest = httpCookieOAuth2AuthorizationRequestRepository.loadAuthorizationRequest(request);
|
OAuth2AuthorizationRequest authorizationRequest = httpCookieOAuth2AuthorizationRequestRepository.loadAuthorizationRequest(request);
|
||||||
String callbackUrlScheme = authorizationRequest.getAttribute(TbOAuth2ParameterNames.CALLBACK_URL_SCHEME);
|
if (authorizationRequest != null) {
|
||||||
|
callbackUrlScheme = authorizationRequest.getAttribute(TbOAuth2ParameterNames.CALLBACK_URL_SCHEME);
|
||||||
|
}
|
||||||
if (!StringUtils.isEmpty(callbackUrlScheme)) {
|
if (!StringUtils.isEmpty(callbackUrlScheme)) {
|
||||||
baseUrl = callbackUrlScheme + ":";
|
baseUrl = callbackUrlScheme + ":";
|
||||||
errorPrefix = "/?error=";
|
errorPrefix = "/?error=";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user