Commit Graph

406 Commits

Author SHA1 Message Date
Michael Snoyman
9a3a2a5aa5 Version bump 2015-01-09 11:04:18 +02:00
Félix Sipma
9c1a970305 Updated french translation of Yesod.Auth.Message. 2015-01-07 19:40:37 +01:00
Michael Snoyman
e96d1c3622 Version bumps 2014-12-30 05:58:39 +02:00
gxtaillon
c9dff10bd1 Updated french translation of Yesod.Auth.Message. 2014-12-28 00:51:43 -05:00
Артур Файзрахманов
7875b6aa87 Support "Logout" message
Added support for `Logout` message, all translations made with Google
Translate, except: Russian translation (by hand) and Dutch translation
(do not translated)
2014-12-22 01:19:47 +05:00
Michael Snoyman
bed6dafce8 Doc link updates 2014-12-21 15:23:52 +02:00
Michael Snoyman
a0836cf955 Version bump 2014-11-20 02:18:44 +02:00
Mats Rietdijk
0678281352 Adds missing dutch translation and improved another translation 2014-11-19 23:02:35 +01:00
Mats Rietdijk
31fb28850c Adds dutch translations to yesod-auth 2014-11-19 22:47:32 +01:00
Michael Snoyman
94491f6417 Version bump 2014-10-23 05:59:32 +03:00
Paul Rouse
fbb0313589 Redirect dynamically in GoogleEmail2 login page 2014-10-21 09:09:34 +01:00
Michael Snoyman
c91b2978be Remove deprecated deps 2014-10-01 07:09:39 +03:00
Michael Snoyman
9ce4d49d0a persistent 2.1 and warp 3.0.2 2014-09-30 06:57:38 +03:00
Greg Weber
510f70d5b3 fix typos 2014-09-24 08:07:15 -07:00
Greg Weber
01339ad528 add some documentation for Yesod.Auth.Email 2014-09-24 07:47:13 -07:00
Michael Snoyman
def48d8a45 Version bumps for 1.4 release 2014-09-21 11:41:37 +03:00
Michael Snoyman
f86d181377 Merge branch 'master' into yesod-1.4 2014-09-21 00:07:11 +03:00
Greg Weber
629df4a291 add required attribute 2014-09-17 12:31:42 -07:00
Greg Weber
17b94c16c7 version bump 2014-09-17 09:28:45 -07:00
Greg Weber
8c2542eb8c add required attribute 2014-09-17 09:28:26 -07:00
Greg Weber
51927638c1 version bump 2014-09-16 18:50:06 -07:00
Greg Weber
448b33d1cc fix confirmation email status
I screwed this up in a big re-factoring in 153654ad
2014-09-16 18:49:45 -07: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
Greg Weber
1067816b5d fix confirmation email status
I screwed this up in a big re-factoring in 153654ad
2014-09-16 18:10:40 -07:00
Michael Snoyman
50f57a3586 Fix browserid.hs (closes #547) 2014-09-14 11:04:16 +03: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
Greg Weber
ec6fd486b6 remove the id_token parameter
We saw this error:
Internal Server Error
key "id_token" not present
2014-09-11 13:19:20 -07:00
Manuel Gómez
086837686a Decouple YesodAuthPersist from Persistent 2014-09-10 17:51:11 +00:00
Michael Snoyman
2b01c38d60 Added missing pragma 2014-09-08 07:11:38 +03: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
9471399589 Merge branch 'master' into yesod-1.4 2014-08-28 05:19:21 +03:00
Michael Snoyman
d6b3d2a890 conduit 1.2 version bumps 2014-08-27 18:01:02 +03:00
Michael Snoyman
8b2297adf4 Conditional support for persistent2 branch.
Pinging @gregwebs. I've backported the relevant tweaks on the yesod-1.4
branch, to allow master to compile against persistent2. Whenever you're
ready to release persistent2, we can:

1. Release persistent2.
2. Release new versions of yesod packages, which will work with
   persistent 1.3 and 2.0.
3. Add an upper bound in Stackage to avoid using the new persistent
   libraries until they're ready for primetime.
4. Release your blog post.

yesod-1.4 should then remove the CPP here and only work with
persistent2; the biggest "breaking change" in the 1.4 release will be
remove backwards compatibility hacks for persistent, conduit,
shakespeare, and wai.
2014-08-27 11:16:08 +03:00
Michael Snoyman
30352f56ec Some fixes for persistent2 2014-08-27 10:53:17 +03:00
Michael Snoyman
c66ef04f17 Merge branch 'master' into yesod-1.4
Conflicts:
	yesod-form/Yesod/Form/Functions.hs
2014-08-25 20:20:16 +03:00
cosmo0920
1f20cc0004 yesod-auth: bump up lower bound for aeson
Because `Data.Aeson.Encode.encodeToTextBuilder` is added since
aeson-0.7.0.0.
2014-08-24 19:55:19 +09:00
Michael Snoyman
2ad3227776 Version bumps 2014-08-20 17:54:46 +03:00
Michael Snoyman
17016f8427 Merge branch 'master' of github.com:yesodweb/yesod 2014-08-20 16:46:21 +03:00
Michael Snoyman
587080dbff Merge pull request #797 from wuzzeb/master
Include google person information in the credsExtra field for GoogleEmail2 auth
2014-08-17 11:20:29 +03:00
Michael Snoyman
a70de71d8e Merge branch 'master' of github.com:yesodweb/yesod 2014-08-16 23:06:29 +03:00
Michael Snoyman
63e7cd8e2f network/network-uri split (again) 2014-08-16 23:05:10 +03:00
John Lenz
2a6956a85c Small fixes to adding person info to creds extra for google auth 2014-08-15 21:17:52 -05:00
Kadzuya OKAMOTO
1fe72e8351 fixed Japanese message 2014-08-15 12:57:39 +09:00
John Lenz
8cc1accc11 Include google person information in the credsExtra field for GoogleEmail2 auth 2014-08-05 22:46:55 -05:00
Michael Snoyman
0a619bf29a Version bump 2014-08-03 16:23:16 +03:00
Michael Snoyman
4fd1f76b17 Merge pull request #792 from geraldus/auth-minor-improvements
pre-baked Route Auth value
2014-08-03 13:09:35 +03:00
Артур Файзрахманов
ed53d46adc Type signature fix 2014-08-03 16:07:16 +06:00
Артур Файзрахманов
13f0eb3895 pre-baked Route Auth value
Added forwardUrl alias for `PluginR "browserid" []` as in other plugins
(e.g. GoogleEmail2 and OpenID).
2014-08-03 16:02:52 +06:00
Michael Snoyman
8f2e84fa0a Version bump 2014-07-28 20:55:34 +03:00
Michael Snoyman
ad249aaedb Merge pull request #787 from geraldus/auth-russian-translation-tmp
added messages for Russian language
2014-07-28 20:54:22 +03:00
Артур Файзрахманов
30be70918f added messages for Russian language
`.cabal` unchanged, need version bump
2014-07-28 23:13:31 +06:00
Michael Snoyman
6a09bc3406 Version bumps 2014-07-26 21:53:26 +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
28c366a3b3 Add back conduit 1.0 support #757 2014-06-16 09:07:04 +03:00
Michael Snoyman
0a3ae4ef66 Merge remote-tracking branch 'origin/master' into yesod-1.4 2014-06-01 16:12:36 +03:00
Michael Snoyman
96caaf31d8 GoogleEmail2 2014-06-01 16:10:47 +03:00
Michael Snoyman
787d3c828d Version bump 2014-05-13 16:14:52 +03:00
Michael Snoyman
e35836bbc1 Include patched pwstore-fast implementation.
See: https://github.com/PeterScott/pwstore/pull/10
2014-05-11 15:43:06 +03:00
Michael Snoyman
ddc622485a Merge pull request #735 from axel-angel/master
Auth.Email: modern buttons, use translation RegisterLong
2014-05-09 07:31:04 +03:00
Axel Angel
da034e7beb Translate missing french messages 2014-05-09 00:50:13 +02:00
Axel Angel
bd1b5b1ef1 Auth.Email: modern buttons, use translation RegisterLong 2014-05-09 00:29:50 +02:00
Michael Snoyman
fe622d5345 Merge remote-tracking branch 'origin/master' into yesod-1.4
Conflicts:
	yesod-auth/yesod-auth.cabal
	yesod-form/Yesod/Form/Fields.hs
	yesod-form/yesod-form.cabal
	yesod-persistent/Yesod/Persist/Core.hs
2014-04-18 14:33:54 +03:00
Michael Snoyman
c8553920a3 Version bump 2014-04-09 20:14:02 +03:00
Paul Rouse
a81639f480 Typo 2014-04-09 17:36:39 +01:00
Paul Rouse
7180d8f299 Add yesod-auth-hashdb to platform and Yesod.Auth description 2014-04-09 17:33:41 +01:00
Michael Snoyman
d764464152 conduit 1.1 2014-03-27 16:38:52 +02:00
Michael Snoyman
3f1fe6e1c0 Version bumps 2014-03-26 22:05:56 +02:00
Michael Snoyman
bdcb174830 Remove pureMD5 and SHA deps 2014-03-26 15:21:37 +02: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
Michael Snoyman
57442abaae Remove HashDB 2014-03-21 08:48:15 +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
Max Cantor (MBPr)
6182ecb256 Correct Cabal Version and Added createOnClickOverride to BrowserId 2014-03-04 15:24:08 -08: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
Michael Snoyman
84baab6fb5 Merge remote-tracking branch 'origin/simpler-dispatch' into persistent2-simpler-dispatch 2014-03-04 13:47:21 +02:00
Felipe Lessa
59d7bc969c yesod-auth: Bump version to 1.2.6. 2014-02-25 19:29:33 -03:00
Felipe Lessa
6f7e8c8e04 Allow Yesod.Auth.Email handlers to be overriden.
The main purpose is to allow more customization of the Yesod.Auth.Email
handlers by not only changing the CSS but also the DOM.
2014-02-25 19:28:09 -03:00
Felipe Lessa
9e6db27be2 Sync normalizeEmailAddress' doc to current code. 2014-02-25 19:11:44 -03:00
Felipe Lessa
9f7031d9dd Whitespace. 2014-02-25 19:10:02 -03:00
Felipe Lessa
71558d3342 Increase Yesod.Auth.Email pwstore strength to the recommended minimum of 14. 2014-02-25 19:08:50 -03:00
arpunk
167b29db8d Remove deprecated RepHtml content type 2014-02-24 23:18:46 -05:00
Michael Snoyman
98b64cd17c Security warnings for Yesod.Auth.HashDB #668 2014-02-22 19:22:47 +02:00
Michael Snoyman
db096471ca persistent2 2014-01-16 08:23:50 +02:00
Michael Snoyman
1479f44f82 Version bumps 2014-01-16 07:46:27 +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
Michael Snoyman
b018c5d7aa Allow persistent 1.3 2013-12-26 12:13:10 +02:00
Greg Weber
507d6faed8 Merge pull request #638 from jprider63/master
Add the function onHtmlError to the auth typeclass so users can customize behavior on authentication errors.
2013-12-23 07:16:31 -08:00
Michael Snoyman
c4f58611cf Version bump 2013-12-23 11:32:54 +02:00
Michael Snoyman
742e21f011 Merge pull request #639 from mruegenberg/master
Add Typeable instance for User entity in Auth.HashDB. Fix #634.
2013-12-22 20:42:06 -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
Marcel Ruegenberg
13347802bf Add Typeable instance for User entity in Auth.HashDB. Fix #634. 2013-12-21 20:11:19 +01:00
Greg Weber
366e63fb36 use loginErrorMessageI to send a json response 2013-12-20 18:32:20 -08:00
jp.rider63
e17523b8f2 attempt at adding onError to auth typeclass 2013-12-20 12:49:30 -05:00
Michael Snoyman
9dc16daff2 Version bump 2013-12-17 15:56:56 +02:00
Michael Snoyman
0b4a7185c6 Add some docs 2013-12-17 15:55:28 +02:00
Michael Snoyman
02ab5320e3 Version bumps 2013-12-04 07:01:20 +02:00
Michael Snoyman
04893d6b0a Export credsKey 2013-12-04 05:26:51 +02:00
Michael Snoyman
07aa7fe037 Merge remote-tracking branch 'origin/normalize-email'
Conflicts:
	yesod-auth/yesod-auth.cabal
2013-09-09 17:09:22 +03:00
Michael Snoyman
7274341322 normalizeEmailAddress 2013-09-09 15:01:20 +02:00
Michael Snoyman
db17c0ade1 shakespeare 1.2/version bumps 2013-09-08 13:48:24 +02:00
Lubomír Sedlář
94fd685046 Add Czech translation for auth messages 2013-08-31 13:37:20 +02:00
Michael Snoyman
e420705b07 Allow modification of confirmation email page 2013-08-20 13:38:11 +03:00
Michael Snoyman
e99302e93d needOldPassword and checkPasswordSecurity 2013-08-07 09:21:29 +03:00
Michael Snoyman
1f614b3b44 Version bump 2013-07-07 10:17:31 +03:00
Michael Sloan
ea37928397 Add autofocus to input fields of the Yesod.Auth.Email subsite 2013-07-03 23:20:12 -07:00
Michael Snoyman
464c78c9b0 Version bump 2013-05-12 09:08:06 +03: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
Tero Laitinen
021b0f48f9 401 Unauthorized HTTP status code for JSON-reply login fails 2013-05-07 21:31:51 +03:00
Michael Snoyman
6db31ec3c4 HashDB: JSON response on bad login #549 2013-05-07 18:54:16 +03: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
Fredrik Carlen
21b8d3e10b Update Message.hs
Added translations to the Swedish messages, and added also some minor corrections to those aswell.
2013-04-22 10:48:35 +03:00
josejuan
0f0c30ecf8 Some corrections on Spanish string into Message.hs
Some corrections on Spanish string into Message.hs
Minor grammatical errors and some unusual terminology.
2013-04-21 22:38:54 +03:00
Felipe Lessa
9a09a80cd8 Update Portuguese translation. 2013-04-21 14:40:49 -03:00
kluge
afa330a83d Update Finnish translations
Add Finnish translations for new strings related to username logins.
2013-04-21 20:20:18 +03:00
Michael Snoyman
60c9df66f4 Fix Spanish messages 2013-04-21 18:38:55 +03:00
Francisco Jose CHAVES
f2bb79faad Update Message.hs
LatinAmerican Spanish
2013-04-21 10:04:11 -05:00
Michael Snoyman
73726dcd6e Merge branch 'patch-1' of https://github.com/pSub/yesod into yesod1.2 2013-04-21 17:15:24 +03:00
Michael Snoyman
4cde171285 BrowserID lazy load 2013-04-21 17:14:40 +03:00
Pascal Wittmann
7e00bf4443 Update Message.hs
Updated German transaltions.
2013-04-21 17:05:45 +03:00
rns
76b6ab100e Update Message.hs
Chinese translation of Yesod.Auth.Message
2013-04-21 20:48:29 +08:00
Michael Snoyman
5a1663b6fd Allow username logins for Yesod.Auth.Email (fixes #532) 2013-04-21 12:57:32 +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
307540fc04 GHC 7.6.2 2013-04-09 06:43:30 +03:00
Michael Snoyman
28e7a9db23 Persistent 1.2 2013-04-03 09:06:13 +03:00
Michael Snoyman
48db89cb45 Version bump 2013-04-02 10:59:46 +03: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
68ca768b83 Export more aeson stuff 2013-03-20 11:57:00 +02:00
Michael Snoyman
fb4045ea45 Warning cleanup 2013-03-20 11:46:32 +02:00
Michael Snoyman
13af2461f1 Add missing route for yesod-auth 2013-03-19 15:18:54 +02:00
Michael Snoyman
2a719941ca Some parsing fixes (not complete) 2013-03-17 13:35:30 +02:00
Kirilll Zaborsky
cd21c91485 EntityField data instances export for HashDB.User 2013-03-14 16:44:05 +04:00
Michael Snoyman
9c4cd573b4 Everything compiles 2013-03-14 09:28:51 +02:00