Versions in this module Expand all Collapse all v0 v0.7.7 Jul 14, 2021 Changes in this version + const ConsoleIDPScopes + const ConsoleIDPTokenExpiration + const ConsoleIdpCallbackURL + const ConsoleIdpClientID + const ConsoleIdpHmacPassphrase + const ConsoleIdpHmacSalt + const ConsoleIdpSecret + const ConsoleIdpURL + const ConsoleMinIOServer + func GetIdpCallbackURL() string + func GetIdpClientID() string + func GetIdpSecret() string + func GetIdpURL() string + func GetRandomStateWithHMAC(length int) string + func GetSTSEndpoint() string + func IsIdpEnabled() bool + type Config struct + func (ac Config) AuthCodeURL(state string, opts ...xoauth2.AuthCodeOption) string + func (ac Config) Client(ctx context.Context, t *xoauth2.Token) *http.Client + func (ac Config) Exchange(ctx context.Context, code string, opts ...xoauth2.AuthCodeOption) (*xoauth2.Token, error) + func (ac Config) PasswordCredentialsToken(ctx context.Context, username string, password string) (*xoauth2.Token, error) + func (ac Config) TokenSource(ctx context.Context, t *xoauth2.Token) xoauth2.TokenSource + type Configuration interface + AuthCodeURL func(state string, opts ...xoauth2.AuthCodeOption) string + Client func(ctx context.Context, t *xoauth2.Token) *http.Client + Exchange func(ctx context.Context, code string, opts ...xoauth2.AuthCodeOption) (*xoauth2.Token, error) + PasswordCredentialsToken func(ctx context.Context, username string, password string) (*xoauth2.Token, error) + TokenSource func(ctx context.Context, t *xoauth2.Token) xoauth2.TokenSource + type Provider struct + ClientID string + func NewOauth2ProviderClient(ctx context.Context, scopes []string, httpClient *http.Client) (*Provider, error) + func (client *Provider) GenerateLoginURL() string + func (client *Provider) VerifyIdentity(ctx context.Context, code, state string) (*credentials.Credentials, error) + type User struct + AppMetadata map[string]interface{} + Blocked bool + CreatedAt string + Email string + EmailVerified bool + FamilyName string + GivenName string + Identities []interface{} + LastIP string + LastLogin string + LastPasswordReset string + LoginsCount int + MultiFactor string + Name string + Nickname string + PhoneNumber string + PhoneVerified bool + Picture string + UpdatedAt string + UserID string + UserMetadata map[string]interface{} + Username string