Merge pull request #822 from docmunch/no-id-token
remove the id_token parameter
This commit is contained in:
commit
ef55173383
@ -156,7 +156,7 @@ authGoogleEmail clientID clientSecret =
|
|||||||
manager <- liftM authHttpManager $ lift getYesod
|
manager <- liftM authHttpManager $ lift getYesod
|
||||||
res <- http req manager
|
res <- http req manager
|
||||||
value <- responseBody res $$+- sinkParser json'
|
value <- responseBody res $$+- sinkParser json'
|
||||||
Tokens accessToken _idToken tokenType <-
|
Tokens accessToken tokenType <-
|
||||||
case parseEither parseJSON value of
|
case parseEither parseJSON value of
|
||||||
Left e -> error e
|
Left e -> error e
|
||||||
Right t -> return t
|
Right t -> return t
|
||||||
@ -184,11 +184,10 @@ authGoogleEmail clientID clientSecret =
|
|||||||
|
|
||||||
dispatch _ _ = notFound
|
dispatch _ _ = notFound
|
||||||
|
|
||||||
data Tokens = Tokens Text Text Text
|
data Tokens = Tokens Text Text
|
||||||
instance FromJSON Tokens where
|
instance FromJSON Tokens where
|
||||||
parseJSON = withObject "Tokens" $ \o -> Tokens
|
parseJSON = withObject "Tokens" $ \o -> Tokens
|
||||||
<$> o .: "access_token"
|
<$> o .: "access_token"
|
||||||
<*> o .: "id_token"
|
|
||||||
<*> o .: "token_type"
|
<*> o .: "token_type"
|
||||||
|
|
||||||
data Person = Person [Email]
|
data Person = Person [Email]
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-auth
|
name: yesod-auth
|
||||||
version: 1.3.4.3
|
version: 1.3.4.4
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman, Patrick Brisbin
|
author: Michael Snoyman, Patrick Brisbin
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user