Commit Graph

161 Commits

Author SHA1 Message Date
Joel Taylor
dbd5fbfea2 add pragmas 2015-02-22 17:18:13 -08:00
Michael Snoyman
d82d3843b4 Version bump 2015-02-19 08:33:41 +02:00
Konstantin Zudov
18a8513e38 Save the access_token only from special handler 2015-02-16 14:16:26 +02:00
Konstantin Zudov
7ed5d4ad39 Added means to fetch user's Google profile
The existing GoogleEmail2 auth did that:
  - Acquire user access token with offline access
  - Use token to acquire user's profile
  - Build `Creds` with user's email as `ident` and the other profile
    details as stringy key-value pairs in `credsExtra`

This wasn't enough for me, for several reasons:
  - Access token was not saved after authentication. If we request 'offline'
    token why not to have a way of using it later.
  - Stringy key-value profile is not nice and `credsExtra` can be accessed
    only from `getAuthId`
  - I might want to request the profile after authentication process

So I've added the needed features.
  - The access token is saved in a session
  - There is a `Person` type with `FromJSON` instance and `getPerson`
    can be used to acquire it from `HandlerT`
2015-02-16 09:44:13 +02:00
Félix Sipma
9c1a970305 Updated french translation of Yesod.Auth.Message. 2015-01-07 19:40:37 +01: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
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
Paul Rouse
fbb0313589 Redirect dynamically in GoogleEmail2 login page 2014-10-21 09:09:34 +01: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
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
8c2542eb8c add required attribute 2014-09-17 09:28:26 -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
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
Michael Snoyman
2b01c38d60 Added missing pragma 2014-09-08 07:11:38 +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
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
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
Артур Файзрахманов
30be70918f added messages for Russian language
`.cabal` unchanged, need version bump
2014-07-28 23:13:31 +06:00
Michael Snoyman
28c366a3b3 Add back conduit 1.0 support #757 2014-06-16 09:07:04 +03:00
Michael Snoyman
96caaf31d8 GoogleEmail2 2014-06-01 16:10:47 +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
bdcb174830 Remove pureMD5 and SHA deps 2014-03-26 15:21:37 +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
Max Cantor (MBPr)
6182ecb256 Correct Cabal Version and Added createOnClickOverride to BrowserId 2014-03-04 15:24:08 -08: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
Michael Snoyman
98b64cd17c Security warnings for Yesod.Auth.HashDB #668 2014-02-22 19:22:47 +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
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
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
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