servant-auth-server-0.3.2.0: servant-server/servant-auth compatibility

Safe HaskellNone
LanguageHaskell2010

Servant.Auth.Server.Internal.ConfigTypes

Synopsis

Documentation

data IsMatch Source #

Constructors

Matches 
DoesNotMatch 

Instances

Eq IsMatch Source # 

Methods

(==) :: IsMatch -> IsMatch -> Bool #

(/=) :: IsMatch -> IsMatch -> Bool #

Ord IsMatch Source # 
Read IsMatch Source # 
Show IsMatch Source # 
Generic IsMatch Source # 

Associated Types

type Rep IsMatch :: * -> * #

Methods

from :: IsMatch -> Rep IsMatch x #

to :: Rep IsMatch x -> IsMatch #

type Rep IsMatch Source # 
type Rep IsMatch = D1 (MetaData "IsMatch" "Servant.Auth.Server.Internal.ConfigTypes" "servant-auth-server-0.3.2.0-2KI0XaNMvwT4925DYuC2HP" False) ((:+:) (C1 (MetaCons "Matches" PrefixI False) U1) (C1 (MetaCons "DoesNotMatch" PrefixI False) U1))

data IsSecure Source #

Constructors

Secure 
NotSecure 

Instances

Eq IsSecure Source # 
Ord IsSecure Source # 
Read IsSecure Source # 
Show IsSecure Source # 
Generic IsSecure Source # 

Associated Types

type Rep IsSecure :: * -> * #

Methods

from :: IsSecure -> Rep IsSecure x #

to :: Rep IsSecure x -> IsSecure #

type Rep IsSecure Source # 
type Rep IsSecure = D1 (MetaData "IsSecure" "Servant.Auth.Server.Internal.ConfigTypes" "servant-auth-server-0.3.2.0-2KI0XaNMvwT4925DYuC2HP" False) ((:+:) (C1 (MetaCons "Secure" PrefixI False) U1) (C1 (MetaCons "NotSecure" PrefixI False) U1))

data IsPasswordCorrect Source #

Instances

Eq IsPasswordCorrect Source # 
Ord IsPasswordCorrect Source # 
Read IsPasswordCorrect Source # 
Show IsPasswordCorrect Source # 
Generic IsPasswordCorrect Source # 
type Rep IsPasswordCorrect Source # 
type Rep IsPasswordCorrect = D1 (MetaData "IsPasswordCorrect" "Servant.Auth.Server.Internal.ConfigTypes" "servant-auth-server-0.3.2.0-2KI0XaNMvwT4925DYuC2HP" False) ((:+:) (C1 (MetaCons "PasswordCorrect" PrefixI False) U1) (C1 (MetaCons "PasswordIncorrect" PrefixI False) U1))

data SameSite Source #

Instances

Eq SameSite Source # 
Ord SameSite Source # 
Read SameSite Source # 
Show SameSite Source # 
Generic SameSite Source # 

Associated Types

type Rep SameSite :: * -> * #

Methods

from :: SameSite -> Rep SameSite x #

to :: Rep SameSite x -> SameSite #

type Rep SameSite Source # 
type Rep SameSite = D1 (MetaData "SameSite" "Servant.Auth.Server.Internal.ConfigTypes" "servant-auth-server-0.3.2.0-2KI0XaNMvwT4925DYuC2HP" False) ((:+:) (C1 (MetaCons "AnySite" PrefixI False) U1) ((:+:) (C1 (MetaCons "SameSiteStrict" PrefixI False) U1) (C1 (MetaCons "SameSiteLax" PrefixI False) U1)))

data JWTSettings Source #

JWTSettings are used to generate cookies, and to verify JWTs.

Constructors

JWTSettings 

Fields

  • key :: JWK
     
  • audienceMatches :: StringOrURI -> IsMatch

    An aud predicate. The aud is a string or URI that identifies the intended recipient of the JWT.

Instances

Generic JWTSettings Source # 

Associated Types

type Rep JWTSettings :: * -> * #

type Rep JWTSettings Source # 
type Rep JWTSettings = D1 (MetaData "JWTSettings" "Servant.Auth.Server.Internal.ConfigTypes" "servant-auth-server-0.3.2.0-2KI0XaNMvwT4925DYuC2HP" False) (C1 (MetaCons "JWTSettings" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "key") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 JWK)) (S1 (MetaSel (Just Symbol "audienceMatches") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (StringOrURI -> IsMatch)))))

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

Instances

Eq CookieSettings Source # 
Show CookieSettings Source # 
Generic CookieSettings Source # 

Associated Types

type Rep CookieSettings :: * -> * #

Default CookieSettings Source # 

Methods

def :: CookieSettings #

type Rep CookieSettings Source #