mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-23 01:21:55 +01:00
Merge branch 'update/send-post-body' into merge/test-all-providers
This commit is contained in:
commit
f1ab6091cc
@ -25,7 +25,7 @@ library:
|
||||
- aeson >=0.6 && <1.5
|
||||
- bytestring >=0.9.1.4
|
||||
- errors
|
||||
- hoauth2 >=1.3.0 && <1.9
|
||||
- hoauth2 >=1.7.0 && <1.11
|
||||
- http-client >=0.4.0 && <0.7
|
||||
- http-conduit >=2.0 && <3.0
|
||||
- http-types >=0.8 && <0.13
|
||||
|
||||
@ -67,7 +67,7 @@ dispatchCallback name oauth2 getCreds = do
|
||||
code <- requireGetParam "code"
|
||||
manager <- authHttpManager
|
||||
oauth2' <- withCallbackAndState name oauth2 csrf
|
||||
token <- errLeft $ fetchAccessToken manager oauth2' $ ExchangeToken code
|
||||
token <- errLeft $ fetchAccessToken2 manager oauth2' $ ExchangeToken code
|
||||
creds <- errLeft $ tryFetchCreds $ getCreds manager token
|
||||
setCredsRedirect creds
|
||||
where
|
||||
|
||||
Loading…
Reference in New Issue
Block a user