Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains all supported security schemes defined in the specification
Documentation
data BasicAuthenticationSecurityScheme Source #
Use this security scheme to use basic authentication for a request. Should be used in a Configuration
.
Basic HTTP authentication. Allowed headers-- Authorization: Basic <api_key> | Authorization: Basic <base64 hash of `api_key:`>
defaultConfiguration
{ _securityScheme =BasicAuthenticationSecurityScheme
{basicAuthenticationSecuritySchemeUsername
= "user",basicAuthenticationSecuritySchemePassword
= "pw" } }
Instances
data BearerAuthenticationSecurityScheme Source #
Use this security scheme to use bearer authentication for a request. Should be used in a Configuration
.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
defaultConfiguration
{ _securityScheme =BearerAuthenticationSecurityScheme
"token" }