swagger-0.2: Implementation of swagger data model

Safe HaskellNone
LanguageHaskell2010

Data.Swagger.Build.Authorisation

Contents

Synopsis

basic auth

api key

oauth2

scope :: Text -> ScopeBuilder -> OAuth2Builder Source

Add one scope with the given name to an OAuth2 object.

implicit :: Text -> ImplicitBuilder -> GrantTypes Source

Construct an implicit grant type with the given login endpoint and some optional token name.

authCode :: TokenRequestEndpoint -> TokenEndpoint -> GrantTypes Source

Construct an authentorisation code based grant type object.

token :: Text -> State (TokenName a) () Source

end :: Monad m => m () Source

If cases where no build steps are provided but a builder is required end can be used, e.g. defineModel "Foo" end

builder types

type ScopeSt = Common `["description"]` Scope Source