Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DaoAuthenticationProvider ¶
type DaoAuthenticationProvider struct {
// contains filtered or unexported fields
}
DaoAuthenticationProvider struct.
func NewDaoAuthenticationProvider ¶
func NewDaoAuthenticationProvider(passwordHasher password.Hasher, userProvider UserProvider) *DaoAuthenticationProvider
NewDaoAuthenticationProvider constructor.
func (*DaoAuthenticationProvider) Authenticate ¶
func (p *DaoAuthenticationProvider) Authenticate(r *http.Request, creds credential.Credential) (*http.Request, error)
Authenticate implements Provider.
func (*DaoAuthenticationProvider) IsSupported ¶
func (p *DaoAuthenticationProvider) IsSupported(creds credential.Credential) bool
IsSupported returns true if credential.Credential is supported.
type MockUserProvider ¶
MockUserProvider is an autogenerated mock type for the UserProvider type
func (*MockUserProvider) LoadUserByUsername ¶
func (_m *MockUserProvider) LoadUserByUsername(username string) (user.User, error)
LoadUserByUsername provides a mock function with given fields: username
Click to show internal directories.
Click to hide internal directories.