Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth2 ¶
type OAuth2 interface {
GetAuthURL(scope, accessType, state, includeGrantedScopes, loginHint, prompt string) (string, error)
GetToken(code string) ([]byte, error)
VerifyToken(accessToken string) (string, error)
RefreshToken(refreshToken string) (string, error)
RevokeToken(accessToken string) error
GetProfileDetails(accessToken string) (ProfileDetails, error)
GetAndVerifyToken(code string) (VerifyDetails, error)
}
OAuth2 interface to deal with OAuth2
type ProfileDetails ¶
ProfileDetails stores the details fetched from the profile call
Click to show internal directories.
Click to hide internal directories.