Commit bf115406 authored by Quxl's avatar Quxl

x

parent 21589cee
...@@ -77,7 +77,7 @@ public interface OAuthApi { ...@@ -77,7 +77,7 @@ public interface OAuthApi {
OAuthClientRequest oauthResponse = builder.buildQueryMessage(); OAuthClientRequest oauthResponse = builder.buildQueryMessage();
String redirectUrl = oauthResponse.getLocationUri(); String redirectUrl = oauthResponse.getLocationUri();
redirectUrl = redirectUrl.replaceAll("\\+", "%20"); redirectUrl = redirectUrl.replaceAll("\\+", "%20");
logger.debug("oauth authorization url:" + redirectUrl); logger.debug("oauth authorization url: " + redirectUrl);
return redirectUrl; return redirectUrl;
} catch (OAuthApiException e) { } catch (OAuthApiException e) {
throw e; throw e;
...@@ -159,7 +159,7 @@ public interface OAuthApi { ...@@ -159,7 +159,7 @@ public interface OAuthApi {
String idToken = oAuthResponse.getParam("id_token"); String idToken = oAuthResponse.getParam("id_token");
String tokenType = oAuthResponse.getTokenType(); String tokenType = oAuthResponse.getTokenType();
OAuthToken newToken = new OAuthToken(accessToken, refreshToken, idToken, tokenType, expiresIn); OAuthToken newToken = new OAuthToken(accessToken, refreshToken, idToken, tokenType, expiresIn);
logger.debug("oauth refresh result:" + JSON.toJSONString(newToken)); logger.debug("oauth refresh result: " + JSON.toJSONString(newToken));
session.setAttribute(OAUTH_TOKEN_SESSION, newToken); session.setAttribute(OAUTH_TOKEN_SESSION, newToken);
} catch (OAuthApiException e) { } catch (OAuthApiException e) {
throw e; throw e;
......
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