Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessProvider ¶
type ExternalProviderClaims ¶
type ExternalProviderClaims struct { jwt.StandardClaims SiteURL string `json:"site_url"` Provider string `json:"provider"` }
func DecodeJwtClaims ¶
type OAuthProvider ¶
type OAuthProvider interface { AuthCodeURL(string, ...oauth2.AuthCodeOption) string GetUserData(context.Context, *oauth2.Token) (*UserProvidedData, error) GetOAuthToken(string) (*oauth2.Token, error) }
OAuthProvider specifies additional methods needed for providers using OAuth
func NewGoogleProvider ¶
func NewGoogleProvider(konf *koanf.Koanf) (OAuthProvider, error)
NewGoogleProvider creates a Google account provider.
Click to show internal directories.
Click to hide internal directories.