Crate sanctum

source ·

Structs

  • Represents an OAuth2 session This is used to start the OAuth2 flow The auth_url field should be used to redirect the user to the OAuth2 provider The remainder of this session should be stored in the backend and used to complete the authentication when the user is redirected back
  • Represents a full token

Enums

  • The general error type for this crate
  • A general type for user IDs, allows the backend to use either a numeric or text ID as the implementer sees fit
  • The type of token issued
  • Errors associated with using TOTP (two factor authentication)

Traits

  • The backend trait, implement this for your backend
  • Implement this trait for each OAuth2 Provider and provide the required configuration constants