| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.Auth.Server.Internal.ConfigTypes
- data IsMatch
- data IsSecure
- data IsPasswordCorrect
- data SameSite
- data JWTSettings = JWTSettings {
- key :: JWK
- audienceMatches :: StringOrURI -> IsMatch
- defaultJWTSettings :: JWK -> JWTSettings
- data CookieSettings = CookieSettings {}
- defaultCookieSettings :: CookieSettings
- jwtSettingsToJwtValidationSettings :: JWTSettings -> JWTValidationSettings
Documentation
Constructors
| Matches | |
| DoesNotMatch |
data IsPasswordCorrect Source
Constructors
| PasswordCorrect | |
| PasswordIncorrect |
Constructors
| AnySite | |
| SameSiteStrict | |
| SameSiteLax |
data JWTSettings Source
JWTSettings are used to generate cookies, and to verify JWTs.
Constructors
| JWTSettings | |
Fields
| |
Instances
defaultJWTSettings :: JWK -> JWTSettings Source
A JWTSettings where the audience always matches.
data CookieSettings Source
The policies to use when generating cookies.
If *both* cookieMaxAge and cookieExpires are Nothing, browsers will
treat the cookie as a *session cookie*. These will be deleted when the
browser is closed.
Note that having the setting Secure may cause testing failures if you are
not testing over HTTPS.
Constructors
| CookieSettings | |
Fields
| |