Module humphrey_auth::app

source ·
Expand description

Provides the authentication-related extensions to the Humphrey app.


  • Represents a Humphrey application with authentication enabled. This is implemented on Humphrey’s App type provided that the state implements AuthState and the database implements AuthDatabase.
  • 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.