changed cabal file and added type signatures
This commit is contained in:
parent
ab980f34bd
commit
628aaae2b9
@ -83,6 +83,7 @@ authOAuth oauth mkCreds = AuthPlugin name dispatch login
|
||||
let oaUrl = render $ tm $ oauthUrl name
|
||||
[whamlet| <a href=#{oaUrl}>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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user