From 628aaae2b97cb129fff1bd90261371bed18fb504 Mon Sep 17 00:00:00 2001 From: Hiromi Ishii Date: Mon, 3 Dec 2012 22:31:23 +0900 Subject: [PATCH] changed cabal file and added type signatures --- yesod-auth-oauth/Yesod/Auth/OAuth.hs | 1 + yesod-auth-oauth/yesod-auth-oauth.cabal | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/yesod-auth-oauth/Yesod/Auth/OAuth.hs b/yesod-auth-oauth/Yesod/Auth/OAuth.hs index 9b1c5e8e..a2929aff 100644 --- a/yesod-auth-oauth/Yesod/Auth/OAuth.hs +++ b/yesod-auth-oauth/Yesod/Auth/OAuth.hs @@ -83,6 +83,7 @@ authOAuth oauth mkCreds = AuthPlugin name dispatch login let oaUrl = render $ tm $ oauthUrl name [whamlet| Login via #{name} |] +mkExtractCreds :: YesodAuth m => Text -> String -> Credential -> IO (Creds m) mkExtractCreds name idName (Credential dic) = do let mcrId = decodeUtf8With lenientDecode <$> lookup (encodeUtf8 $ T.pack idName) dic case mcrId of diff --git a/yesod-auth-oauth/yesod-auth-oauth.cabal b/yesod-auth-oauth/yesod-auth-oauth.cabal index 97992b24..187617aa 100644 --- a/yesod-auth-oauth/yesod-auth-oauth.cabal +++ b/yesod-auth-oauth/yesod-auth-oauth.cabal @@ -1,5 +1,5 @@ name: yesod-auth-oauth -version: 1.1.0.0 +version: 1.1.0.1 license: BSD3 license-file: LICENSE author: Hiromi Ishii @@ -25,8 +25,9 @@ library , yesod-core >= 1.1 && < 1.2 , yesod-auth >= 1.1 && < 1.2 , text >= 0.7 && < 0.12 - , yesod-form >= 1.1 && < 1.2 + , yesod-form >= 1.1 && < 1.3 , transformers >= 0.2.2 && < 0.4 + , lifted-base >= 0.2 && < 0.3 exposed-modules: Yesod.Auth.OAuth ghc-options: -Wall