Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains JWT authentication settings
Synopsis
- getJWTAuthSettings :: IO JWTSettings
- buildJWTSettings :: JWK -> JWKSet -> (StringOrURI -> IsMatch) -> JWTSettings
- acquireJwks :: IO JWKSet
Documentation
getJWTAuthSettings :: IO JWTSettings Source #
Build JWT settings to be used in Servant Auth context
Looks for JWK_AUDIENCES
and JWK_PATH
in environment values
to load the sig file and value to verify the incoming jwt audience claim
buildJWTSettings :: JWK -> JWKSet -> (StringOrURI -> IsMatch) -> JWTSettings Source #
acquireJwks :: IO JWKSet Source #