Arthur Fayzrakhmanov (Артур Файзрахманов)
2074915962
Apply stylish-haskell, organize imports
2015-06-24 20:54:27 +05:00
Arthur Fayzrakhmanov (Артур Файзрахманов)
dfd14ea16d
Remove redundant imports
2015-06-24 20:54:27 +05:00
Arthur Fayzrakhmanov (Артур Файзрахманов)
1891e573fc
Use nonce package in Auth.GoogleEmail2
...
Generate CSRF tokens using `nonce` package
2015-06-24 20:54:20 +05:00
Arthur Fayzrakhmanov (Артур Файзрахманов)
4b05cd83f6
Use nonce package in Auth.Email
...
Generate verification keys using `nonce` package.
2015-06-24 20:54:11 +05:00
Jude Taylor
886e6bdd2c
add ConstrainedClassMethods
2015-06-08 00:30:16 -07:00
Michael Snoyman
fa0fbb4569
Version bump
2015-04-26 18:37:33 +03:00
Richard Zetterberg
9e1516594e
Fixes faulty type annotations
2015-04-26 15:28:45 +02:00
Richard Zetterberg
770a7a29d2
Adds export of verify route
...
This allows users of the library to easily render VerUrl to use in
verification emails to new users, if the user was created outside
of the regular register functionality.
2015-04-26 14:55:12 +02: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
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
Greg Weber
366e63fb36
use loginErrorMessageI to send a json response
2013-12-20 18:32:20 -08: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
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 Sloan
ea37928397
Add autofocus to input fields of the Yesod.Auth.Email subsite
2013-07-03 23:20:12 -07: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
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
307540fc04
GHC 7.6.2
2013-04-09 06:43:30 +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
Michael Snoyman
099b96f178
Everything compiles
2013-03-13 13:35:11 +02:00
Michael Snoyman
eecda0c80e
Removed conditional compilation
2013-03-11 11:46:05 +02:00
Michael Snoyman
8246aa4c1e
Whole repo compiles
2013-03-11 11:25:26 +02:00
Michael Snoyman
581248b1c8
Include Persona login icon yesodweb/authenticate#19
2013-02-18 11:30:23 +02:00
John Wiegley
4f22aa7aac
Added explicit type signature for GHC 7.6.2
2013-02-03 07:29:01 -06:00
Michael Snoyman
7c72f11b21
Addressed some yesod-auth FIXMEs
2013-01-02 14:13:56 +02:00
Michael Snoyman
d9231ff5ad
BrowserID: createOnClick
2012-12-16 09:24:12 +02:00
Michael Snoyman
fdeaec8dd4
Improved email labels
2012-12-11 19:20:25 +02:00
Michael Snoyman
fb02d71d73
Persistent 1.1
2012-11-27 16:57:46 +02:00
Michael Snoyman
50df681969
Removed some debug output
2012-11-22 12:57:47 +02:00
Michael Snoyman
6a7102f44e
Use newer Mozilla Persona API ( #453 )
2012-11-18 19:03:26 +02:00
Michael Snoyman
a6ce05609d
Version bumps
2012-09-11 07:17:23 +03:00
Tero Laitinen
0d417e5f69
Finnish translation for Yesod.Auth.Message
2012-08-10 12:33:11 +03:00
Michael Snoyman
699d76d13a
Merge branch 'beta'
...
Conflicts:
yesod-core/yesod-core.cabal
yesod-json/yesod-json.cabal
yesod-test/Yesod/Test.hs
yesod-test/test/main.hs
yesod-test/yesod-test.cabal
2012-07-11 08:48:09 +03:00
Michael Snoyman
21a4360f74
Allow openid to use claimed IDs ( #338 )
2012-07-02 09:57:20 +03:00
Michael Snoyman
3ecbf43f5d
$newline
2012-07-01 20:59:37 +03:00
Michael Snoyman
83e6061944
Merge branch 'master' of https://github.com/tanakh/yesod
...
Conflicts:
yesod-auth/Yesod/Auth/Message.hs
yesod-form/yesod-form.cabal
2012-06-05 06:22:31 +03:00
Hideyuki Tanaka
7296b13fc3
japanese translation
2012-06-05 01:13:22 +09:00
Christian Rødli Amble
5a54cf0dbc
Norwegian language support.
2012-06-04 11:03:04 +02:00
Michael Steele
faf60f623e
yesod-auth: change returned Creds identifier to "googleemail".
2012-05-24 16:05:59 -07:00
Michael Snoyman
8802472344
yesod-auth: use blaze-html 0.5
2012-04-23 14:14:23 +03:00
Michael Snoyman
aa459bc8d8
Fixed some warnings
2012-04-23 14:01:25 +03:00
Michael Snoyman
e2c79f95bd
OpenID claimed IDs
2012-04-20 10:14:32 +03:00
Félix
69871a030a
Fixed some typos in the french translation
2012-04-10 19:14:41 +02:00
Félix
dd8ce35e74
French translation of Yesod Auth messages
2012-04-09 19:58:23 +02:00
Michael Snoyman
67ae9c739b
Merge commit 'e4e2dd75cc86909d66062a7655b8cbc3a959932d'
...
Conflicts:
yesod-auth/Yesod/Auth.hs
yesod-auth/Yesod/Auth/BrowserId.hs
yesod-auth/Yesod/Auth/Dummy.hs
yesod-auth/Yesod/Auth/Email.hs
yesod-auth/Yesod/Auth/HashDB.hs
yesod-auth/Yesod/Auth/OpenId.hs
yesod-auth/Yesod/Auth/Rpxnow.hs
yesod-form/Yesod/Form/Fields.hs
yesod-form/Yesod/Form/Functions.hs
yesod-form/Yesod/Form/Jquery.hs
yesod-form/Yesod/Form/Nic.hs
yesod-form/Yesod/Helpers/Crud.hs
yesod-newsfeed/Yesod/AtomFeed.hs
yesod-newsfeed/Yesod/RssFeed.hs
2012-03-25 11:07:12 +02:00
Pascal Wittmann
f4e743e50d
removed QQ hacks from yesod-auth
2012-03-15 22:08:19 +01:00
Michael Snoyman
e62e4b8721
Finished deprecating old Widget functions
2012-03-13 13:11:05 +02:00
Michael Snoyman
4cc468ca3b
Beginning of old widget function deprecation, not complete
2012-03-13 06:36:27 +02:00
Michael Snoyman
cbd0719f37
conduit 0.3
2012-03-12 13:40:04 +02:00
Tom Streller
f9dde86025
germanMessage added to the export list
2012-02-29 12:28:57 +01:00
Tom Streller
7b90f10f14
german auth messages
2012-02-28 19:38:46 +01:00
Arash Rouhani
2914025202
Include Swedish support in yesod-auth
2012-02-17 23:22:39 +01:00
Michael Snoyman
a58f859d41
Fix warnings
2012-02-12 15:35:44 +02:00
Michael Snoyman
2e71fb0a28
GoogleEmail skips unnecessary parameter
2012-02-12 15:23:41 +02:00
Michael Snoyman
26fe38a9f4
maybeAuth/requireAuth use Entity
2012-01-31 13:02:18 +02:00
Michael Snoyman
2f38ddaff3
Temporarily remove sessionIpAddress ( #243 )
2012-01-31 06:53:47 +02:00
Michael Snoyman
225bf0fb63
Split up authenticate and yesod-auth ( #232 )
2012-01-24 05:44:07 +02:00
Felipe Lessa
ad94640041
Translate new Kerberos messages to Portuguese.
2012-01-17 07:52:05 -02:00
Michael Snoyman
24135d75b7
Translated Kerberos messages
2012-01-17 09:08:46 +02:00
Michael Snoyman
0ca5e4878e
Avoid use of error ( #220 )
2012-01-17 09:06:06 +02:00
Michael Snoyman
d478065ffc
BrowserID cleanup
2012-01-17 09:06:06 +02:00
Michael Snoyman
30d8697d54
sqlMkSettings -> sqlSettings
2012-01-13 06:11:31 +02:00
Michael Snoyman
352f577de6
Fix some warnings
2012-01-12 07:56:19 +02:00
Michael Snoyman
6d30eabd7c
Scaffolding provides Manager
2012-01-10 11:57:08 +02:00
Michael Snoyman
1b3eb2b282
yesod-auth on authenticate 1.0.0
2012-01-10 11:38:59 +02:00
Michael Snoyman
ca9bb6e449
More pair -> Entity changes
2012-01-10 11:20:17 +02:00
Michael Snoyman
f57efbe1b0
Expose Unique ( #209 )
2012-01-10 11:19:30 +02:00
Michael Snoyman
69f2f7b3e7
Updated yesod-auth for redirect changes
2012-01-07 22:08:29 +02:00
Michael Snoyman
938f70af51
Added missing oauthRealm
2012-01-07 20:00:46 +02:00
Michael Snoyman
69a5d0e0ed
Whole repo builds with new yesod-routes
2012-01-05 15:27:16 +02:00
Michael Snoyman
13e1179409
Switch to BrowserId/GoogleEmail for scaffolded site
2012-01-02 21:04:09 +02:00
Michael Snoyman
6936331a37
Fix authBrowserId
2012-01-01 17:16:33 +02:00
Michael Snoyman
61f0c26e9f
MonadLift
2011-12-30 13:30:24 +02:00
Michael Snoyman
e7c4b0a1cd
Fixed yesod-json, yesod-auth
2011-12-29 15:45:36 +02:00
Michael Snoyman
50ce1da37e
Everything builds
2011-12-28 10:03:14 +02:00
Felipe Lessa
4c394e070b
Include Portuguese support in yesod-auth.
...
Now 'defaultMessage' is just a synonym of 'englishMessage' and we
have a new 'portugueseMessage' rendering function.
2011-12-24 17:08:49 -02:00
Felipe Lessa
9a9d063d3e
Re-export facebookLogin as facebookUrl in yesod-auth's Facebook.
...
Now facebookUrl is deprecated and provided only for backwards
compatibility. This also allows us to bump yesod-auth's version
back to 0.7.*.
2011-12-19 14:04:51 -02:00
Felipe Lessa
15495d6213
Facebook logout support and access token.
...
This patch renames "facebookUrl" to "facebookLogin" and adds
"facebookLogout". The latter logs out the user from Facebook as
well to comply with Facebook's policies.
As a bonus, we also save the user's access token into their
session and export "getFacebookAccessToken". Besides being
useful for the application, this is necessary for the new logout
action.
This patch also bumps the version to 0.8 since we have renamed
"facebookUrl".
2011-12-19 09:56:46 -02:00