servant-auth-token-api 0.4.1.0 → 0.4.1.1
raw patch · 2 files changed
+2/−2 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Servant.API.Auth.Token: type AuthCheckPermissionsMethod = "auth" :> ("check" :> (TokenHeader' '["auth-check"] :> (ReqBody '[JSON] (OnlyField "permissions" [Permission]) :> Get '[JSON] Bool)))
+ Servant.API.Auth.Token: type AuthCheckPermissionsMethod = "auth" :> ("check" :> (TokenHeader' '["auth-check"] :> (ReqBody '[JSON] (OnlyField "permissions" [Permission]) :> Post '[JSON] Bool)))
Files
servant-auth-token-api.cabal view
@@ -1,5 +1,5 @@ name: servant-auth-token-api-version: 0.4.1.0+version: 0.4.1.1 synopsis: Servant based API for token based authorisation description: Please see README.md homepage: https://github.com/ncrashed/servant-auth-token-api#readme
src/Servant/API/Auth/Token.hs view
@@ -656,7 +656,7 @@ type AuthCheckPermissionsMethod = "auth" :> "check" :> TokenHeader' '["auth-check"] :> ReqBody '[JSON] (OnlyField "permissions" [Permission])- :> Get '[JSON] Bool+ :> Post '[JSON] Bool -- | Get the user id of the owner of specified token. 401 error is raised if -- the token doesn't have 'auth-userid' token.