-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | servant-swagger/servant-auth compatibility
--   
--   This package provides instances that allow generating swagger2 schemas
--   from <a>servant</a> APIs that use <a>servant-auth's</a> <tt>Auth</tt>
--   combinator.
--   
--   For a quick overview of the usage, see the <a>README</a>.
@package servant-auth-swagger
@version 0.2.10.0

module Servant.Auth.Swagger

-- | A JSON Web Token (JWT) in the the Authorization header:
--   
--   <pre>
--   Authorization: Bearer <a>token</a>
--   </pre>
--   
--   Note that while the token is signed, it is not encrypted. Therefore do
--   not keep in it any information you would not like the client to know.
--   
--   JWTs are described in IETF's <a>RFC 7519</a>
data JWT

-- | Basic Auth.
data BasicAuth

-- | <tt>Auth [auth1, auth2] val :&gt; api</tt> represents an API protected
--   *either* by <tt>auth1</tt> or <tt>auth2</tt>
data Auth (auths :: [*]) val
instance (Servant.Auth.Swagger.AllHasSecurity xs, Servant.Swagger.Internal.HasSwagger api) => Servant.Swagger.Internal.HasSwagger (Servant.Auth.Auth xs r Servant.API.Sub.:> api)
instance (Servant.Auth.Swagger.HasSecurity x, Servant.Auth.Swagger.AllHasSecurity xs) => Servant.Auth.Swagger.AllHasSecurity (x : xs)
instance Servant.Auth.Swagger.AllHasSecurity xs => Servant.Auth.Swagger.AllHasSecurity (Servant.Auth.Cookie : xs)
instance Servant.Auth.Swagger.AllHasSecurity '[]
instance Servant.Auth.Swagger.HasSecurity Servant.Auth.BasicAuth
instance Servant.Auth.Swagger.HasSecurity Servant.Auth.JWT
