package
0.0.0-20250206095323-67f4e8942fa5
Repository: https://github.com/noxyicm/wsf.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
IdentityFromContext returns an identity stored in context.
IdentityToContext returns a new context with stored identity.
Instance returns an auth instance.
NewAdapter creates a new auth adapter from given type and options.
NewAdapterDbTable creates a new dbtable adapter.
NewAdapterFromConfig creates a new auth adapter from given type and AdapterConfig.
NewAuth creates a new auth from given type and options.
NewAuthAdapterHTTP creates a new http auth adapter.
NewDefaultAuth creates a default auth object.
NewIdentity creates a new auth identity from given type and options.
NewIdentityDefault creates a new default auth identity.
NewIdentityFromConfig creates a new auth identity from given IdentityConfig.
NewResult creates a new auth result from given type and options.
NewResultDefault creates a new default auth result object.
NewStorage creates a new auth storage from given type and options.
NewStorageFromConfig creates a new auth storage from given type and StorageConfig.
NewStorageSession creates a new auth storage of type session.
Options return db options.
Register registers a handler for auth creation.
RegisterAdapter registers a handler for auth adapter creation.
RegisterIdentity registers a handler for auth identity creation.
RegisterResult registers a handler for auth result creation.
RegisterStorage registers a handler for auth storage creation.
SetInstance sets a main auth instance.
# Constants
General Failure.
Failure due to invalid credential being supplied.
Failure due to identity being ambiguous.
Failure due to identity being blocked.
Failure due to identity not being activated.
Failure due to identity not being found.
Failure due to uncategorized reasons.
Authentication success.
Public constants.
Public constants.
Public constants.
TYPEAdapterDbTable is the name of adapter.
Public constants.
Public constants.
Public constants.
Public constants.
Public constants.
# Structs
AdapterConfig defines set of adapter variables.
AdapterHTTP is a http based auth adapter.
Config defines set of adapter variables.
DbTableAdapter is a database based auth adapter.
DefaultAuth is a default auth object.
DefaultIdentity is a default auth identity.
DefaultResult is a default auth result object.
IdentityConfig defines set of adapter variables.
SessionStorage is an auth storage in session.
StorageConfig defines set of adapter variables.