Documentation ¶
Index ¶
- Constants
- func IsDebugEnv() bool
- func NewDebugAuthenticator(user *db.User, chainAddresses []persist.ChainAddress, ...) auth.Authenticator
- func NewDebugSocialAuthenticator(provider persist.SocialProvider, id string, metadata map[string]interface{}, ...) socialauth.Authenticator
- type DebugAuthenticator
- type DebugSocialAuthenticator
Constants ¶
View Source
const Enabled bool = false
Variables ¶
This section is empty.
Functions ¶
func IsDebugEnv ¶
func IsDebugEnv() bool
func NewDebugAuthenticator ¶
func NewDebugAuthenticator(user *db.User, chainAddresses []persist.ChainAddress, debugToolsPassword string) auth.Authenticator
func NewDebugSocialAuthenticator ¶
func NewDebugSocialAuthenticator(provider persist.SocialProvider, id string, metadata map[string]interface{}, debugToolsPassword string) socialauth.Authenticator
Types ¶
type DebugAuthenticator ¶
type DebugAuthenticator struct { User *db.User ChainAddresses []persist.ChainAddress DebugToolsPassword string }
func (DebugAuthenticator) Authenticate ¶
func (d DebugAuthenticator) Authenticate(ctx context.Context) (*auth.AuthResult, error)
func (DebugAuthenticator) GetDescription ¶
func (d DebugAuthenticator) GetDescription() string
type DebugSocialAuthenticator ¶
type DebugSocialAuthenticator struct { Provider persist.SocialProvider ID string Metadata map[string]interface{} DebugToolsPassword string }
func (DebugSocialAuthenticator) Authenticate ¶
func (d DebugSocialAuthenticator) Authenticate(ctx context.Context) (*socialauth.SocialAuthResult, error)
Click to show internal directories.
Click to hide internal directories.