Documentation ¶
Index ¶
- Constants
- func KeyToHTMLImage(key *otp.Key) (string, error)
- func NewKey(ctx context.Context, accountName string, d interface{ ... }) (*otp.Key, error)
- func NewTOTPImageQRNode(key *otp.Key) (*node.Node, error)
- func NewTOTPSourceURLNode(key *otp.Key) *node.Node
- func NewUnlinkTOTPNode() *node.Node
- func NewVerifyTOTPNode() *node.Node
- type CredentialsConfig
- type SchemaExtension
- type Strategy
- func (s *Strategy) CountActiveCredentials(cc map[identity.CredentialsType]identity.Credentials) (count int, err error)
- func (s *Strategy) ID() identity.CredentialsType
- func (s *Strategy) Login(w http.ResponseWriter, r *http.Request, f *login.Flow, ss *session.Session) (i *identity.Identity, err error)
- func (s *Strategy) NodeGroup() node.Group
- func (s *Strategy) PopulateLoginMethod(r *http.Request, requestedAAL identity.AuthenticatorAssuranceLevel, ...) error
- func (s *Strategy) PopulateSettingsMethod(r *http.Request, id *identity.Identity, f *settings.Flow) error
- func (s *Strategy) RegisterLoginRoutes(r *x.RouterPublic)
- func (s *Strategy) RegisterSettingsRoutes(_ *x.RouterPublic)
- func (s *Strategy) Settings(w http.ResponseWriter, r *http.Request, f *settings.Flow, ss *session.Session) (*settings.UpdateContext, error)
- func (s *Strategy) SettingsStrategyID() string
Constants ¶
View Source
const InternalContextKeyURL = "url"
Variables ¶
This section is empty.
Functions ¶
func NewUnlinkTOTPNode ¶
func NewVerifyTOTPNode ¶
Types ¶
type CredentialsConfig ¶
type CredentialsConfig struct { // TOTPURL is the TOTP URL // // For more details see: https://github.com/google/google-authenticator/wiki/Key-Uri-Format TOTPURL string `json:"totp_url"` }
CredentialsConfig is the struct that is being used as part of the identity credentials.
type SchemaExtension ¶
type SchemaExtension struct { AccountName string // contains filtered or unexported fields }
func NewSchemaExtension ¶
func NewSchemaExtension(fallback string) *SchemaExtension
func (*SchemaExtension) Finish ¶
func (r *SchemaExtension) Finish() error
func (*SchemaExtension) Run ¶
func (r *SchemaExtension) Run(_ jsonschema.ValidationContext, s schema.ExtensionConfig, value interface{}) error
type Strategy ¶
type Strategy struct {
// contains filtered or unexported fields
}
func NewStrategy ¶
func NewStrategy(d registrationStrategyDependencies) *Strategy
func (*Strategy) CountActiveCredentials ¶
func (s *Strategy) CountActiveCredentials(cc map[identity.CredentialsType]identity.Credentials) (count int, err error)
func (*Strategy) ID ¶
func (s *Strategy) ID() identity.CredentialsType
func (*Strategy) PopulateLoginMethod ¶
func (*Strategy) PopulateSettingsMethod ¶
func (*Strategy) RegisterLoginRoutes ¶
func (s *Strategy) RegisterLoginRoutes(r *x.RouterPublic)
func (*Strategy) RegisterSettingsRoutes ¶
func (s *Strategy) RegisterSettingsRoutes(_ *x.RouterPublic)
func (*Strategy) SettingsStrategyID ¶
Click to show internal directories.
Click to hide internal directories.