idp

package
v0.0.0-...-6606c74 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDPManager

type IDPManager struct {
	// contains filtered or unexported fields
}

func NewIDPManager

func NewIDPManager(userSvc *user.UserService) *IDPManager

func (*IDPManager) FindById

func (m *IDPManager) FindById(ctx context.Context, id string) (IDProvider, error)

type IDProvider

type IDProvider interface {
	GetUser(context.Context, any) (*user.User, error)
	Support(string) bool
}

type PasswdIDP

type PasswdIDP struct {
	// contains filtered or unexported fields
}

func NewPasswdIDP

func NewPasswdIDP(userSvc *user.UserService) *PasswdIDP

func (*PasswdIDP) GetUser

func (p *PasswdIDP) GetUser(ctx context.Context, data any) (*user.User, error)

GetUserInfo implements IDProvider.

func (*PasswdIDP) Support

func (*PasswdIDP) Support(provider string) bool

Suooprt implements IDProvider.

Jump to

Keyboard shortcuts

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