Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserInfoNotReceived = fmt.Errorf("user info not received")
)
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { GetConsentPageUrl(redirectUrl string) (string, string) ExchangeCodeToToken(ctx context.Context, code string, redirectUrl string) (*oauth2.Token, error) GetUserInfo(ctx context.Context, token *oauth2.Token) (UserInfo, error) }
func NewProvider ¶
func NewProvider(oauthConfig *oauth2.Config, userInfoUrl string, unmarshallUserInfo UnmarshallUserInfo) Provider
type UnmarshallUserInfo ¶
Click to show internal directories.
Click to hide internal directories.