packages feed

servant-auth-token-api 0.3.0.0 → 0.3.1.0

raw patch · 3 files changed

+8/−3 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Servant.API.Auth.Token: type AuthSigninGetCodeMethod = "auth" :> ("signin" :> (QueryParam "login" Login :> Get '[JSON] Unit))
+ Servant.API.Auth.Token: type AuthSigninGetCodeMethod = "auth" :> ("signin" :> ("code" :> (QueryParam "login" Login :> Get '[JSON] Unit)))
- Servant.API.Auth.Token: type AuthSigninPostCodeMethod = "auth" :> ("signin" :> (QueryParam "login" Login :> (QueryParam "code" SingleUseCode :> (QueryParam "expire" Seconds :> Post '[JSON] (OnlyField "token" SimpleToken)))))
+ Servant.API.Auth.Token: type AuthSigninPostCodeMethod = "auth" :> ("signin" :> ("code" :> (QueryParam "login" Login :> (QueryParam "code" SingleUseCode :> (QueryParam "expire" Seconds :> Post '[JSON] (OnlyField "token" SimpleToken))))))

Files

CHANGELOG.md view
@@ -1,3 +1,8 @@+0.3.1.0+=======++* Fix overlaying bug with singe use code authorisation.+ 0.3.0.0 ======= 
servant-auth-token-api.cabal view
@@ -1,5 +1,5 @@ name:                servant-auth-token-api-version:             0.3.0.0+version:             0.3.1.0 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
@@ -461,7 +461,7 @@ -- * Client can invalidate token instantly by 'AuthSignoutMethod' -- -- * Client can get info about user with 'AuthTokenInfoMethod' endpoint.-type AuthSigninGetCodeMethod = "auth" :> "signin"+type AuthSigninGetCodeMethod = "auth" :> "signin" :> "code"   :> QueryParam "login" Login    :> Get '[JSON] Unit @@ -487,7 +487,7 @@ -- * Client can invalidate token instantly by 'AuthSignoutMethod' -- -- * Client can get info about user with 'AuthTokenInfoMethod' endpoint.-type AuthSigninPostCodeMethod = "auth" :> "signin"+type AuthSigninPostCodeMethod = "auth" :> "signin" :> "code"   :> QueryParam "login" Login    :> QueryParam "code" SingleUseCode   :> QueryParam "expire" Seconds