Documentation ¶
Index ¶
- Constants
- func EmbedFlowInOIDCState(param string) (string, error)
- func ExtractFlowFromOIDCState(state string) (string, error)
- 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 UserData
- type UserInfo
Constants ¶
View Source
const ( PasskeyAuthMethod string = "passkey" PasskeyRegisterType string = "register" PasskeyLoginType string = "login" )
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
type UserData ¶ added in v0.7.14
type UserData struct { Id string Name string DisplayName string Credentials []webauthn.Credential }
func NewPassKeyUser ¶ added in v0.7.14
func NewPasskeyUserWithCredentials ¶ added in v0.7.14
func NewPasskeyUserWithCredentials(id string, webAuthCredentialData []webauthn.Credential) *UserData
func (*UserData) WebAuthnCredentials ¶ added in v0.7.14
func (u *UserData) WebAuthnCredentials() []webauthn.Credential
func (*UserData) WebAuthnDisplayName ¶ added in v0.7.14
func (*UserData) WebAuthnID ¶ added in v0.7.14
func (*UserData) WebAuthnIcon ¶ added in v0.7.14
func (*UserData) WebAuthnName ¶ added in v0.7.14
Click to show internal directories.
Click to hide internal directories.