Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type AuthProvider interface { // create new user Create(context.Context, string, map[string]interface{}, bool) (string, error) // returns id,error // update user Update(context.Context, string, map[string]interface{}, bool) error // get recovery link for user GetRecoveryLink(context.Context, string) (string, error) // delete user Delete(context.Context, string) error // Get Public metadata of Kratos id. GetPublicMetadata(context.Context, string) (*IdentityPublicMetadata, error) }
func NewKratosAuthProvider ¶
func NewKratosAuthProvider(kc *kclient.APIClient) AuthProvider
type IdentityPublicMetadata ¶ added in v0.2.0
type IdentityPublicMetadata struct { // Indicate identity is created with auto generated password. ForceReset bool }
IdentityPublicMetadata is an extra information of the user. Checkout https://www.ory.sh/docs/kratos/manage-identities/managing-users-identities-metadata for more information about Ory Kratos identity metadata.
Click to show internal directories.
Click to hide internal directories.