ihp-1.5.0: Haskell Web Framework
Safe HaskellNone
LanguageGHC2021

IHP.LoginSupport.Types

Synopsis

Documentation

class HasNewSessionUrl (user :: k) where Source #

Methods

newSessionUrl :: Proxy user -> Text Source #

currentUserVaultKey :: Key (Maybe CurrentUserRecord) Source #

Vault key for the current user record. Used by authMiddleware to store the authenticated user in the WAI request vault.

currentAdminVaultKey :: Key (Maybe CurrentAdminRecord) Source #

Vault key for the current admin record. Used by adminAuthMiddleware to store the authenticated admin in the WAI request vault.

currentUserIdVaultKey :: Key (Maybe UUID) Source #

Vault key for the current user's UUID. Used by userIdMiddleware to store just the user ID (no DB fetch).

currentAdminIdVaultKey :: Key (Maybe UUID) Source #

Vault key for the current admin's UUID. Used by adminIdMiddleware to store just the admin ID (no DB fetch).

lookupAuthVault :: Key (Maybe user) -> Request -> Maybe user Source #

Pure lookup of an auth record from the WAI request vault.