Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Yesod/Auth/OAuth2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ authOAuth2 name oauth getCreds = AuthPlugin name dispatch login
Left _ -> permissionDenied "Unable to retreive OAuth2 token"
Right token -> do
creds <- liftIO $ getCreds token
lift $ setCreds True creds
lift $ setCredsRedirect creds

dispatch _ _ = notFound

Expand Down
6 changes: 3 additions & 3 deletions yesod-auth-oauth2.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: yesod-auth-oauth2
version: 0.0.4
version: 0.0.5
license: BSD3
license-file: LICENSE
author: Tom Streller
Expand All @@ -25,8 +25,8 @@ library
, http-conduit >= 2.0 && < 3.0
, http-types >= 0.8 && < 0.9
, aeson >= 0.6 && < 0.8
, yesod-core >= 1.2 && < 1.3
, yesod-auth >= 1.2 && < 1.3
, yesod-core >= 1.2 && < 1.4
, yesod-auth >= 1.2 && < 1.4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused here -- your comment says this lower bound should be 1.3 (and I agree), right? Why didn't that change make it into this PR before merge?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good c

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. This would need conditional compilation to keep working on 1.2

, text >= 0.7 && < 2.0
, yesod-form >= 1.3 && < 1.4
, transformers >= 0.2.2 && < 0.4
Expand Down