Module humphrey_auth::app
source · Expand description
Provides the authentication-related extensions to the Humphrey app.
Traits
- Represents a Humphrey application with authentication enabled. This is implemented on Humphrey’s
App
type provided that the state implementsAuthState
and the database implementsAuthDatabase
. - Represents a function able to handle an authenticated request. This is passed the request, the state, and the UID of the authenticated user.
- Represents a state which contains an
AuthProvider
. This must be implemented on the state in order to use authentication.