providers

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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{}, IdentityPublicMetadata) (string, error) // returns id,error
	// update user
	Update(context.Context, string, map[string]interface{}, IdentityPublicMetadata) 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
	// Associated paralus partner and organization
	Organization string
	Partner      string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL