oauth2

package
v0.0.0-...-d9936ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// OAuthProviders is a global variable that contains instance for all enabled the OAuth providers
	OAuthProviders OAuthProvider
	// OIDCProviders is a global variable that contains instance for all enabled the OpenID providers
	OIDCProviders OIDCProvider
)

Functions

func InitOAuth

func InitOAuth() error

InitOAuth initializes the OAuth providers based on EnvData

Types

type OAuthProvider

type OAuthProvider struct {
	GoogleConfig   *oauth2.Config
	GithubConfig   *oauth2.Config
	FacebookConfig *oauth2.Config
	LinkedInConfig *oauth2.Config
	AppleConfig    *oauth2.Config
	TwitterConfig  *oauth2.Config
}

OAuthProviders is a struct that contains reference all the OAuth providers

type OIDCProvider

type OIDCProvider struct {
	GoogleOIDC *oidc.Provider
}

OIDCProviders is a struct that contains reference all the OpenID providers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL