Documentation ¶
Index ¶
Constants ¶
View Source
const ErrorAccessDenied = "access_denied"
Variables ¶
This section is empty.
Functions ¶
func IsAccessTokenError ¶ added in v1.22.0
func IsRefreshTokenError ¶ added in v1.22.0
Types ¶
type HTTPClientSource ¶ added in v1.24.0
type Provider ¶
type Provider interface { provider.Provider TokenSourceSource CalculateStateForRestrictedToken(restrictedToken string) string // state = crypto of provider name, restrictedToken, secret GetAuthorizationCodeURLWithState(state string) string ExchangeAuthorizationCodeForToken(ctx context.Context, authorizationCode string) (*Token, error) }
type Token ¶
type Token struct { AccessToken string `json:"accessToken" bson:"accessToken"` TokenType string `json:"tokenType,omitempty" bson:"tokenType,omitempty"` RefreshToken string `json:"refreshToken,omitempty" bson:"refreshToken,omitempty"` ExpirationTime time.Time `json:"expirationTime,omitempty" bson:"expirationTime,omitempty"` }
func (*Token) Normalize ¶
func (t *Token) Normalize(normalizer structure.Normalizer)
func (*Token) Parse ¶
func (t *Token) Parse(parser structure.ObjectParser)
type TokenSource ¶
type TokenSource interface { HTTPClientSource RefreshedToken() (*Token, error) ExpireToken() }
type TokenSourceSource ¶ added in v1.24.0
Click to show internal directories.
Click to hide internal directories.