Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains JWT authentication settings
Synopsis
- getJWTAuthSettings :: MonadUnliftIO m => m JWTSettings
- buildJWTSettings :: JWK -> JWKSet -> (StringOrURI -> IsMatch) -> JWTSettings
- acquireJwks :: IO JWKSet
Documentation
getJWTAuthSettings :: MonadUnliftIO m => m 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 #