| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.SecuritySchemes
Description
Contains all supported security schemes defined in the specification
Documentation
data BasicAuthenticationData Source #
Used to pass the authentication information for BasicAuthentication to basicAuthenticationSecurityScheme.
Constructors
| BasicAuthenticationData | |
Instances
basicAuthenticationSecurityScheme :: BasicAuthenticationData -> SecurityScheme 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{ configSecurityScheme =basicAuthenticationSecuritySchemeBasicAuthenticationData{basicAuthenticationDataUsername= "user",basicAuthenticationDataPassword= "pw" } }
bearerAuthenticationSecurityScheme :: Text -> SecurityScheme 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{ configSecurityScheme =bearerAuthenticationSecurityScheme"token" }