Class GitHubOAuthService

java.lang.Object
com.bytedesk.core.rbac.auth.github.GitHubOAuthService

@Service public class GitHubOAuthService extends Object
  • Field Details

    • properties

      private final GitHubProperties properties
    • objectMapper

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

    • GitHubOAuthService

      public GitHubOAuthService()
  • Method Details

    • restTemplate

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

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

      public GitHubUserProfile fetchUserProfile(String accessToken)
    • fetchEmails

      public List<GitHubEmail> fetchEmails(String accessToken)