Documentation ¶
Index ¶
- type GoogleOAuthService
- func (service *GoogleOAuthService) GetConfig() (config *oauth2.Config)
- func (service *GoogleOAuthService) GetRedirectUrl(ctx context.Context) (url string, err error)
- func (service *GoogleOAuthService) GetToken(ctx context.Context, code string) (token *oauth2.Token, err error)
- func (service *GoogleOAuthService) GetUserInfo(ctx context.Context, accessToken string) (info *googleOAuth2.Tokeninfo, err error)
- func (service *GoogleOAuthService) Scopes() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleOAuthService ¶
type GoogleOAuthService struct {
// contains filtered or unexported fields
}
func NewGoogleOAuthService ¶
func NewGoogleOAuthService(opt ...option.ClientOption) (service *GoogleOAuthService, err error)
func (*GoogleOAuthService) GetConfig ¶
func (service *GoogleOAuthService) GetConfig() (config *oauth2.Config)
func (*GoogleOAuthService) GetRedirectUrl ¶
func (service *GoogleOAuthService) GetRedirectUrl(ctx context.Context) (url string, err error)
GetOAuthRedirectUrl returns the url to redirect user to google oauth consent screen
func (*GoogleOAuthService) GetUserInfo ¶
func (service *GoogleOAuthService) GetUserInfo(ctx context.Context, accessToken string) (info *googleOAuth2.Tokeninfo, err error)
func (*GoogleOAuthService) Scopes ¶
func (service *GoogleOAuthService) Scopes() []string
Click to show internal directories.
Click to hide internal directories.