Remove client-specific data from AuthInfo
This commit is contained in:
parent
a6f00d3483
commit
6a626cdecd
1 changed files with 7 additions and 5 deletions
|
@ -240,7 +240,6 @@ defResponse = Response
|
|||
data AuthenticationInfo = AuthenticationInfo
|
||||
{ _authIntro :: String
|
||||
, _authDataRequired :: String
|
||||
, _authUserReturned :: String
|
||||
} deriving (Eq, Ord, Show)
|
||||
|
||||
-- | A datatype that represents everything that can happen
|
||||
|
@ -598,10 +597,13 @@ markdown api = unlines $
|
|||
authStr Nothing = []
|
||||
authStr (Just auth) =
|
||||
"#### Authentication" :
|
||||
"This endpoint is protected." :
|
||||
"" :
|
||||
auth ^. authIntro :
|
||||
"Data to supply" :
|
||||
"" :
|
||||
"Clients must supply the following data" :
|
||||
"" :
|
||||
auth ^. authDataRequired :
|
||||
"" :
|
||||
[]
|
||||
|
||||
capturesStr :: [DocCapture] -> [String]
|
||||
|
|
Loading…
Reference in a new issue