Documentation ¶
Index ¶
- Constants
- func EmbedFlowInOIDCState(param string) (string, error)
- func ExtractFlowFromOIDCState(state string) (string, error)
- func GenerateNonceFromLetters(length int, letterRunes []rune) string
- type MailLink
- type MailOTP
- type OIDC
- func (g *OIDC) AuthURL(state string) (url string, nonce string, err error)
- func (g *OIDC) GetUser(ctx context.Context, token *oauth2.Token) (*UserInfo, error)
- func (g *OIDC) Init(ctx context.Context, issuer string) (*OIDC, error)
- func (g *OIDC) Token(ctx context.Context, code string, nonce string) (*oauth2.Token, error)
- type UserInfo
Constants ¶
View Source
const (
MailLinkAuthMethod string = "maillink"
)
View Source
const (
MailOTPAuthMethod string = "mailotp"
)
Variables ¶
This section is empty.
Functions ¶
func EmbedFlowInOIDCState ¶
Types ¶
type MailLink ¶ added in v0.7.2
MailLink sends a mail with a one time password link to user's email id. On successful verification, it creates a session
type MailOTP ¶
MailOTP sends a mail with a one time password to user's email id and verifies the OTP. On successful verification, it creates a session
Click to show internal directories.
Click to hide internal directories.