Commit 5aeff39 1 parent 460de87 commit 5aeff39 Copy full SHA for 5aeff39
File tree 1 file changed +3
-3
lines changed
client/google-oauth-client/src/main/java/com/wypl/googleoauthclient
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 29
29
@ RequiredArgsConstructor
30
30
@ Component
31
31
public class GoogleOAuthClient {
32
+ private static final String VALIDATION_URI = "https://www.googleapis.com/oauth2/v1/tokeninfo" ;
32
33
33
34
private final GoogleOAuthProperties googleOAuthProperties ;
34
35
private final RestTemplate restTemplate ;
35
- private final String VALIDATION_URI = "https://www.googleapis.com/oauth2/v1/tokeninfo" ;
36
36
37
37
public GoogleTokenResponse fetchGoogleOAuthToken (String code ) {
38
38
MultiValueMap <String , String > params = GoogleOAuthParamFactory
@@ -59,8 +59,8 @@ public GoogleTokenValidationResponse validateToken(String accessToken) {
59
59
60
60
try {
61
61
return restTemplate .getForObject (VALIDATION_URI + "?access_token={access_token}"
62
- , GoogleTokenValidationResponse .class
63
- , params );
62
+ , GoogleTokenValidationResponse .class
63
+ , params );
64
64
} catch (HttpClientErrorException e ) {
65
65
throw new GoogleOAuthException (GoogleOAuthErrorCode .INVALID_TOKEN );
66
66
}
You can’t perform that action at this time.
0 commit comments