Eric Easley
d99de61554
Use CPP to maintain backward compat
2016-04-18 10:03:39 -07:00
Eric Easley
8e71f766b5
Use PersistRecordBackend constraint synonym
2016-04-15 21:25:40 -07:00
Eric Easley
02dcb99cad
Merge remote-tracking branch 'upstream/master'
2016-03-31 13:03:47 -07:00
Murray
a15070709d
allow more than one session message and add statuses
2016-03-16 18:14:40 +00:00
Eric Easley
4bc4fc3b36
Adjust yesod-auth for split DB
2016-02-07 19:17:50 -08:00
Paul Rouse
276e687ac5
Example loginHandler override in haddock
2015-10-27 11:50:27 +00:00
Paul Rouse
a25153d86e
Provide default loginHandler as separate function
2015-10-21 12:27:59 +01:00
Greg Weber
3f96cae289
yesod-auth: add a runHttpRequest typeclass method
2015-10-07 07:06:21 -07:00
Alexander Bondarenko
5cc440129d
Provide a hint on how to use loginHandler.
2015-04-24 12:11:10 +03:00
Michael Snoyman
e3e5cb80eb
A bit more version bumping
2015-03-24 08:54:09 +02:00
patrick brisbin
cb27424083
Version bump to 1.4.4
2015-03-23 18:01:26 -04:00
patrick brisbin
3564e1f746
Add AuthenticationResult and authenticate function
...
- getAuthId returns Maybe AuthId with no useful information in the
Nothing case.
- AuthenticationResult includes whether it was a User or Server error
(with an accompanying message) in the failure case.
- User errors are displayed back to the user and have a 401 status in
JSON responses. Server errors are logged and a generic error message
is presented to the user, with a 500 status in JSON responses.
Resolves #956
2015-03-23 18:01:26 -04:00
Aleksey Uimanov
e64773cd41
Perform onLogout before session cleaning
2015-02-05 00:21:14 +05:00
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