Greg Weber
4f95cb9f64
Merge pull request #825 from yesodweb/confirm-email-status
...
Confirm email status
2014-09-16 20:49:05 -05:00
Greg Weber
2a30519169
fix some import warnings
2014-09-16 18:13:28 -07:00
Manuel Gómez
94331fcab9
Travis doesn't like type instance in a class
2014-09-12 13:35:00 +00:00
Manuel Gómez
9729cd9d15
Default type instance for AuthEntity
...
`AuthEntity` is now a type family associated to the `YesodAuthPersist`
class, so its old type alias definition has now become its default type
instance, which allows recovering the old behavior with minimal
boilerplate: an empty instance declaration for `YesodAuthPersist` makes
a Yesod application written with Persistent work just like before.
Unfortunately, this requires enabling `UndecidableInstances` in the
`Yesod.Auth` module since there is now a nested type family application
(as `AuthEntity` is now itself a type family).
This was tested with the scaffolded application with PostgreSQL, and it
works (given another small change to make it work with Persistent 2 due
to how `SqlPersistT` is now defined).
2014-09-12 13:18:51 +00:00
Manuel Gómez
4fd20299c1
maybeAuthPair, requireAuthPair
...
`maybeAuth` and `requireAuth` have been reverted to their original
signatures, which assume a Persistent database. `maybeAuthPair` and
`requireAuthPair` are introduced, which do the same but without that
assumption.
2014-09-12 13:14:15 +00:00
Manuel Gómez
086837686a
Decouple YesodAuthPersist from Persistent
2014-09-10 17:51:11 +00:00
Michael Snoyman
ccab062f2d
Remove all conditional compilation for Yesod 1.4 release
...
Left in for GHC-bundled libraries (ghc, base, bytestring, binary)
2014-09-07 18:17:45 +03:00
Michael Snoyman
30352f56ec
Some fixes for persistent2
2014-08-27 10:53:17 +03:00
Michael Snoyman
575e222605
Merge branch 'patch-2' of https://github.com/cblp/yesod into yesod-1.4
2014-07-26 21:20:49 +03:00
Michael Snoyman
e6eae8ee5a
Merge remote-tracking branch 'origin/master' into yesod-1.4
...
Conflicts:
yesod-routes/Yesod/Routes/Parse.hs
yesod-routes/test/Hierarchy.hs
yesod-routes/yesod-routes.cabal
2014-07-26 21:20:31 +03:00
Yuriy Syrovetskiy
9aa9bf9478
401 if API client is not authenticated
...
Server should not HTTP-redirect API client to the auth page, error 401 is more suitable.
2014-07-25 19:19:41 +04:00
João Cristóvão
feee2d7de8
requireAuthId does not need YesodAuthPersist master
2014-07-14 10:57:54 +01:00
Michael Snoyman
c4d97b755b
Merge remote-tracking branch 'origin/master' into persistent2-simpler-dispatch
...
Conflicts:
yesod-auth/Yesod/Auth/HashDB.hs
2014-03-25 05:31:12 +02:00
Greg Weber
b1cdf072ad
Merge branch 'master' into auth-json-2
...
Conflicts:
yesod-auth/Yesod/Auth.hs
yesod-auth/Yesod/Auth/Email.hs
yesod-auth/yesod-auth.cabal
2014-03-20 14:38:14 -07:00
Michael Snoyman
24e8e53f64
Merge remote-tracking branch 'origin/master' into persistent2-simpler-dispatch
...
Conflicts:
.gitignore
yesod-core/yesod-core.cabal
2014-03-20 04:14:09 +02:00
Michael Snoyman
2af3b1b8f1
Merge remote-tracking branch 'origin/simpler-dispatch' into persistent2-simpler-dispatch
2014-03-04 13:57:51 +02:00
Michael Snoyman
13172439a9
Added missing ViewPatterns
2014-03-04 13:57:15 +02:00
arpunk
167b29db8d
Remove deprecated RepHtml content type
2014-02-24 23:18:46 -05:00
Michael Snoyman
db096471ca
persistent2
2014-01-16 08:23:50 +02:00
Greg Weber
d817d37c9c
yesod-auth: user defined layout
2014-01-08 14:35:13 -08:00
Greg Weber
153654adb9
yesod-auth: send json responses
2014-01-08 12:19:45 -08:00
jp.rider63
df9a8136a6
renamed to onErrorHtml
2013-12-22 22:13:59 -05:00
jp.rider63
ed0e551d17
updated onHtmlError documentation
2013-12-22 01:06:57 -05:00
jp.rider63
b57ac44d9c
Added type constraint to onHtmlError. Modified plugins to support this
...
changed type
2013-12-22 01:02:30 -05:00
jp.rider63
e17523b8f2
attempt at adding onError to auth typeclass
2013-12-20 12:49:30 -05:00
Michael Snoyman
0b4a7185c6
Add some docs
2013-12-17 15:55:28 +02:00
Michael Snoyman
04893d6b0a
Export credsKey
2013-12-04 05:26:51 +02:00
Greg Weber
0c9abba5c1
BrowserID: don't use an exception on failure
2013-05-09 11:45:19 -05:00
Greg Weber
604d93512b
auth plugins should send JSON response
...
previously they always redirected
2013-05-09 11:42:34 -05:00
Michael Snoyman
7010292840
Add link to yesod-auth-account
2013-04-25 09:06:11 +03:00
Michael Snoyman
d79fe24d4d
Fixes after merge
2013-04-24 22:00:56 +03:00
Michael Snoyman
98ededba28
Merge remote-tracking branch 'origin/yesod1.2'
...
Conflicts:
yesod-auth/Yesod/Auth.hs
yesod-auth/yesod-auth.cabal
yesod-core/yesod-core.cabal
yesod-static/Yesod/Static.hs
yesod-static/yesod-static.cabal
yesod/yesod.cabal
2013-04-24 19:00:03 +03:00
Michael Snoyman
dfd50f8649
AuthEntity
2013-04-11 09:54:46 +03:00
Michael Snoyman
f29bdbed0e
YesodAuthPersist
2013-04-11 09:43:40 +03:00
Michael Snoyman
0d4102d20a
Version bump
2013-04-09 11:26:06 +03:00
Kirilll Zaborsky
f6b12764e4
Added haddocks to setCreds/clearCreds
2013-04-09 10:53:49 +04:00
Kirilll Zaborsky
f5f84e830d
Added clearCreds symmetric to setCreds function
2013-04-09 09:25:30 +04:00
Michael Snoyman
7748a190f9
Get rid of maybeAuthIdRaw #486
2013-03-24 14:24:41 +02:00
Michael Snoyman
b5a1d76a40
maybeAuthId checks that ID is valid #486
2013-03-24 09:30:39 +02:00
Michael Snoyman
fb4045ea45
Warning cleanup
2013-03-20 11:46:32 +02:00
Michael Snoyman
9c4cd573b4
Everything compiles
2013-03-14 09:28:51 +02:00
Michael Snoyman
099b96f178
Everything compiles
2013-03-13 13:35:11 +02:00
Michael Snoyman
df7c897ee2
cached used in maybeAuth
2013-03-11 11:52:32 +02:00
Michael Snoyman
eecda0c80e
Removed conditional compilation
2013-03-11 11:46:05 +02:00
Michael Snoyman
e2cd292877
yesod-auth doesn't use redirects for JSON requests ( fixes #479 )
2013-03-11 11:37:45 +02:00
Michael Snoyman
8246aa4c1e
Whole repo compiles
2013-03-11 11:25:26 +02:00
Greg Weber
613adc8a3d
expand 's' to 'sub'
2013-01-14 07:36:34 -08:00
Greg Weber
0cb1752067
m stands for monad, use master
2013-01-14 07:34:09 -08:00
Michael Snoyman
7c72f11b21
Addressed some yesod-auth FIXMEs
2013-01-02 14:13:56 +02:00
Michael Snoyman
fb02d71d73
Persistent 1.1
2012-11-27 16:57:46 +02:00