| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Swagger.Model.Authorisation
Description
The Authorisation Object part of the swagger specification. For construction please consider using Data.Swagger.Build.Authorisation.
Synopsis
- data Authorisation
- = BasicAuth
- | ApiKey {
- passAs :: PassMethod
- keyname :: Text
- | OAuth2 {
- scopes :: Maybe [Scope]
- grantTypes :: GrantTypes
- data PassMethod
- data Scope = Scope {
- scope :: Text
- description :: Maybe Text
- data GrantTypes = GrantTypes {}
- data ImplicitGrant = ImplicitGrant {}
- newtype LoginEndpoint = LoginEndpoint {}
- data AuthCode = AuthCode {}
- data TokenRequestEndpoint = TokenRequestEndpoint {}
- data TokenEndpoint = TokenEndpoint {}
Documentation
data Authorisation #
Constructors
| BasicAuth | |
| ApiKey | |
Fields
| |
| OAuth2 | |
Fields
| |
Instances
| Show Authorisation # | |
Defined in Data.Swagger.Model.Authorisation Methods showsPrec :: Int -> Authorisation -> ShowS # show :: Authorisation -> String # showList :: [Authorisation] -> ShowS # | |
| ToJSON Authorisation # | |
Defined in Data.Swagger.Model.Authorisation Methods toJSON :: Authorisation -> Value # toEncoding :: Authorisation -> Encoding # toJSONList :: [Authorisation] -> Value # toEncodingList :: [Authorisation] -> Encoding # | |
data PassMethod #
Constructors
| PassAsHeader | |
| PassAsQuery |
Instances
| Eq PassMethod # | |
Defined in Data.Swagger.Model.Authorisation | |
| Show PassMethod # | |
Defined in Data.Swagger.Model.Authorisation Methods showsPrec :: Int -> PassMethod -> ShowS # show :: PassMethod -> String # showList :: [PassMethod] -> ShowS # | |
| ToJSON PassMethod # | |
Defined in Data.Swagger.Model.Authorisation Methods toJSON :: PassMethod -> Value # toEncoding :: PassMethod -> Encoding # toJSONList :: [PassMethod] -> Value # toEncodingList :: [PassMethod] -> Encoding # | |
Cf. Scope Object
data GrantTypes #
Constructors
| GrantTypes | |
Instances
| Show GrantTypes # | |
Defined in Data.Swagger.Model.Authorisation Methods showsPrec :: Int -> GrantTypes -> ShowS # show :: GrantTypes -> String # showList :: [GrantTypes] -> ShowS # | |
| ToJSON GrantTypes # | |
Defined in Data.Swagger.Model.Authorisation Methods toJSON :: GrantTypes -> Value # toEncoding :: GrantTypes -> Encoding # toJSONList :: [GrantTypes] -> Value # toEncodingList :: [GrantTypes] -> Encoding # | |
data ImplicitGrant #
Cf. Implicit Object
Constructors
| ImplicitGrant | |
Fields | |
Instances
| Show ImplicitGrant # | |
Defined in Data.Swagger.Model.Authorisation Methods showsPrec :: Int -> ImplicitGrant -> ShowS # show :: ImplicitGrant -> String # showList :: [ImplicitGrant] -> ShowS # | |
| ToJSON ImplicitGrant # | |
Defined in Data.Swagger.Model.Authorisation Methods toJSON :: ImplicitGrant -> Value # toEncoding :: ImplicitGrant -> Encoding # toJSONList :: [ImplicitGrant] -> Value # toEncodingList :: [ImplicitGrant] -> Encoding # | |
newtype LoginEndpoint #
Constructors
| LoginEndpoint | |
Instances
| Show LoginEndpoint # | |
Defined in Data.Swagger.Model.Authorisation Methods showsPrec :: Int -> LoginEndpoint -> ShowS # show :: LoginEndpoint -> String # showList :: [LoginEndpoint] -> ShowS # | |
| ToJSON LoginEndpoint # | |
Defined in Data.Swagger.Model.Authorisation Methods toJSON :: LoginEndpoint -> Value # toEncoding :: LoginEndpoint -> Encoding # toJSONList :: [LoginEndpoint] -> Value # toEncodingList :: [LoginEndpoint] -> Encoding # | |
Constructors
| AuthCode | |
data TokenRequestEndpoint #
Constructors
| TokenRequestEndpoint | |
Fields | |
Instances
| Show TokenRequestEndpoint # | |
Defined in Data.Swagger.Model.Authorisation Methods showsPrec :: Int -> TokenRequestEndpoint -> ShowS # show :: TokenRequestEndpoint -> String # showList :: [TokenRequestEndpoint] -> ShowS # | |
| ToJSON TokenRequestEndpoint # | |
Defined in Data.Swagger.Model.Authorisation Methods toJSON :: TokenRequestEndpoint -> Value # toEncoding :: TokenRequestEndpoint -> Encoding # toJSONList :: [TokenRequestEndpoint] -> Value # toEncodingList :: [TokenRequestEndpoint] -> Encoding # | |
data TokenEndpoint #
Constructors
| TokenEndpoint | |
Fields | |
Instances
| Show TokenEndpoint # | |
Defined in Data.Swagger.Model.Authorisation Methods showsPrec :: Int -> TokenEndpoint -> ShowS # show :: TokenEndpoint -> String # showList :: [TokenEndpoint] -> ShowS # | |
| ToJSON TokenEndpoint # | |
Defined in Data.Swagger.Model.Authorisation Methods toJSON :: TokenEndpoint -> Value # toEncoding :: TokenEndpoint -> Encoding # toJSONList :: [TokenEndpoint] -> Value # toEncodingList :: [TokenEndpoint] -> Encoding # | |