Version 0.2, based on yesod 0.6
This commit is contained in:
parent
8dc5dc66f9
commit
203982e3ea
@ -3,7 +3,7 @@
|
|||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE MultiParamTypeClasses #-}
|
{-# LANGUAGE MultiParamTypeClasses #-}
|
||||||
{-# LANGUAGE RankNTypes #-}
|
{-# LANGUAGE RankNTypes #-}
|
||||||
module Yesod.Helpers.Auth2
|
module Yesod.Helpers.Auth
|
||||||
( Auth
|
( Auth
|
||||||
, AuthPlugin (..)
|
, AuthPlugin (..)
|
||||||
, AuthRoute (..)
|
, AuthRoute (..)
|
||||||
@ -1,5 +1,5 @@
|
|||||||
{-# LANGUAGE QuasiQuotes, TypeFamilies #-}
|
{-# LANGUAGE QuasiQuotes, TypeFamilies #-}
|
||||||
module Yesod.Helpers.Auth2.Email
|
module Yesod.Helpers.Auth.Email
|
||||||
( authEmail
|
( authEmail
|
||||||
, YesodAuthEmail (..)
|
, YesodAuthEmail (..)
|
||||||
, EmailCreds (..)
|
, EmailCreds (..)
|
||||||
@ -7,7 +7,7 @@ module Yesod.Helpers.Auth2.Email
|
|||||||
|
|
||||||
import Yesod
|
import Yesod
|
||||||
import Yesod.Mail (randomString)
|
import Yesod.Mail (randomString)
|
||||||
import Yesod.Helpers.Auth2
|
import Yesod.Helpers.Auth
|
||||||
import System.Random
|
import System.Random
|
||||||
import Control.Monad (when)
|
import Control.Monad (when)
|
||||||
import Control.Applicative ((<$>), (<*>))
|
import Control.Applicative ((<$>), (<*>))
|
||||||
@ -1,11 +1,11 @@
|
|||||||
{-# LANGUAGE QuasiQuotes #-}
|
{-# LANGUAGE QuasiQuotes #-}
|
||||||
module Yesod.Helpers.Auth2.Facebook
|
module Yesod.Helpers.Auth.Facebook
|
||||||
( authFacebook
|
( authFacebook
|
||||||
, facebookUrl
|
, facebookUrl
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Yesod
|
import Yesod
|
||||||
import Yesod.Helpers.Auth2
|
import Yesod.Helpers.Auth
|
||||||
import qualified Web.Authenticate.Facebook as Facebook
|
import qualified Web.Authenticate.Facebook as Facebook
|
||||||
import Data.Object (fromMapping, lookupScalar)
|
import Data.Object (fromMapping, lookupScalar)
|
||||||
import Data.Maybe (fromMaybe)
|
import Data.Maybe (fromMaybe)
|
||||||
@ -1,11 +1,11 @@
|
|||||||
{-# LANGUAGE QuasiQuotes #-}
|
{-# LANGUAGE QuasiQuotes #-}
|
||||||
module Yesod.Helpers.Auth2.OpenId
|
module Yesod.Helpers.Auth.OpenId
|
||||||
( authOpenId
|
( authOpenId
|
||||||
, forwardUrl
|
, forwardUrl
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Yesod
|
import Yesod
|
||||||
import Yesod.Helpers.Auth2
|
import Yesod.Helpers.Auth
|
||||||
import qualified Web.Authenticate.OpenId as OpenId
|
import qualified Web.Authenticate.OpenId as OpenId
|
||||||
import Control.Monad.Attempt
|
import Control.Monad.Attempt
|
||||||
|
|
||||||
@ -1,10 +1,10 @@
|
|||||||
{-# LANGUAGE QuasiQuotes #-}
|
{-# LANGUAGE QuasiQuotes #-}
|
||||||
module Yesod.Helpers.Auth2.Rpxnow
|
module Yesod.Helpers.Auth.Rpxnow
|
||||||
( authRpxnow
|
( authRpxnow
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Yesod
|
import Yesod
|
||||||
import Yesod.Helpers.Auth2
|
import Yesod.Helpers.Auth
|
||||||
import qualified Web.Authenticate.Rpxnow as Rpxnow
|
import qualified Web.Authenticate.Rpxnow as Rpxnow
|
||||||
import Control.Monad (mplus)
|
import Control.Monad (mplus)
|
||||||
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-auth
|
name: yesod-auth
|
||||||
version: 0.1.4
|
version: 0.2.0
|
||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
@ -15,7 +15,7 @@ library
|
|||||||
build-depends: base >= 4 && < 5
|
build-depends: base >= 4 && < 5
|
||||||
, authenticate >= 0.7 && < 0.8
|
, authenticate >= 0.7 && < 0.8
|
||||||
, bytestring >= 0.9.1.4 && < 0.10
|
, bytestring >= 0.9.1.4 && < 0.10
|
||||||
, yesod >= 0.5.2 && < 0.6
|
, yesod >= 0.6 && < 0.7
|
||||||
, wai >= 0.2 && < 0.3
|
, wai >= 0.2 && < 0.3
|
||||||
, template-haskell
|
, template-haskell
|
||||||
, pureMD5 >= 1.1 && < 1.2
|
, pureMD5 >= 1.1 && < 1.2
|
||||||
@ -23,13 +23,13 @@ library
|
|||||||
, data-object >= 0.3.1.3 && < 0.4
|
, data-object >= 0.3.1.3 && < 0.4
|
||||||
, control-monad-attempt >= 0.3.0 && < 0.4
|
, control-monad-attempt >= 0.3.0 && < 0.4
|
||||||
, utf8-string >= 0.3.4 && < 0.4
|
, utf8-string >= 0.3.4 && < 0.4
|
||||||
exposed-modules: Yesod.Helpers.Auth2
|
exposed-modules: Yesod.Helpers.Auth
|
||||||
Yesod.Helpers.Auth2.Email
|
Yesod.Helpers.Auth.Email
|
||||||
Yesod.Helpers.Auth2.Facebook
|
Yesod.Helpers.Auth.Facebook
|
||||||
Yesod.Helpers.Auth2.OpenId
|
Yesod.Helpers.Auth.OpenId
|
||||||
Yesod.Helpers.Auth2.Rpxnow
|
Yesod.Helpers.Auth.Rpxnow
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: git://github.com/snoyberg/yesod.git
|
location: git://github.com/snoyberg/yesod-auth.git
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user