Documentation ¶
Index ¶
- Constants
- func NewConfirmLookupNode() *node.Node
- func NewDisableLookupNode() *node.Node
- func NewRegenerateLookupNode() *node.Node
- func NewRevealLookupNode() *node.Node
- type CredentialsConfig
- type RecoveryCode
- 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 (
InternalContextKeyRegenerated = "regenerated"
)
Variables ¶
This section is empty.
Functions ¶
func NewConfirmLookupNode ¶
func NewDisableLookupNode ¶
func NewRegenerateLookupNode ¶
func NewRevealLookupNode ¶
Types ¶
type CredentialsConfig ¶
type CredentialsConfig struct { // List of recovery codes RecoveryCodes []RecoveryCode `json:"recovery_codes"` }
CredentialsConfig is the struct that is being used as part of the identity credentials.
func (*CredentialsConfig) ToNode ¶
func (c *CredentialsConfig) ToNode() *node.Node
type RecoveryCode ¶
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.