Class GoogleOAuthService

java.lang.Object
com.bytedesk.core.rbac.auth.google.GoogleOAuthService

@Service public class GoogleOAuthService extends Object
  • Field Details

    • properties

      private final GoogleProperties properties
    • objectMapper

      private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • GoogleOAuthService

      public GoogleOAuthService()
  • Method Details

    • restTemplate

      private org.springframework.web.client.RestTemplate restTemplate()
    • exchangeCodeForAccessToken

      public String exchangeCodeForAccessToken(String code, String redirectUri)
    • fetchUserInfo

      public GoogleUserInfo fetchUserInfo(String accessToken)