Tom Hughes
94b327ddfc
Test third party logins to pending/suspended/blocked accounts
2021-10-24 10:36:30 +01:00
Tom Hughes
a32b751fed
Remove some references to webmaster
2021-06-29 19:22:31 +01:00
Andy Allan
f18baae22e
Refactor login/logout into sessions controller
...
Certain controller methods are shared with oauth-based logins, and these have been
moved to a concern.
2021-03-24 11:32:46 +00:00
Andy Allan
38ad8fbc36
Use login_path instead of explicit controller and actions
...
This makes future refactoring easier.
2021-03-10 14:31:55 +00:00
Tom Hughes
5912a8011b
Update to Omniauth 2.x
...
This requires converting all use of the /auth endpoints
to use the POST method as GET is no longer supported.
2021-02-02 19:49:03 +00:00
Tom Hughes
d2ff1491b4
Avoid CSP issues with OpenID login
...
To avoid Chrom getting upset about sending form data to sites
that our policy doesn't allow, even when it isn't, use Javascript
to jump straight to Omniauth as the direct OpenID based login
buttons were already doing.
Fixes #1909
2019-02-25 11:46:12 +00:00
Andy Allan
252b9ef08a
Pluralize changesets controller
2018-11-14 10:34:28 +01:00
Andy Allan
3ec67ea2d3
Rename user_controller to users_controller
2018-10-03 15:31:10 +02:00
Tom Hughes
4874219ab8
Mark account suspended flash message as HTML safe
...
Fixes #1590
2017-07-19 00:31:03 +01:00
Tom Hughes
03408b6294
Update get/post etc to remove use of deprecated syntax
2017-06-27 08:26:44 +01:00
Tom Hughes
95eda2d381
Update bundle
2017-06-02 00:08:30 +01:00
Andy Allan
113506bf51
Use user factories for user_login integration tests.
...
The display_name logins were reworked to use downcase since the
factories supply users with an already-title-cased display_name.
The tests were also renamed to align better with the purpose of the
test rather than the name of the fixture used.
2017-03-10 14:53:36 +00:00
Tom Hughes
f8f7cc4628
Update to rails 4.2.8
2017-02-23 21:18:57 +00:00
Tom Hughes
69b967c9ff
Add support for Wikimedia authentication
...
Closes #1146
2016-12-20 22:32:25 +00:00
Tom Hughes
f7b4793c50
Require user_roles fixtures
2016-10-27 12:15:28 +01:00
Tom Hughes
e17b89e89f
Fix rubocop warnings
2016-10-20 22:35:51 +01:00
Andy Allan
23c3168c55
Replace user_blocks fixture with a factory.
...
Traits are used here to make the tests easier to read, and the
different traits can be combined where necessary.
2016-10-19 10:57:40 +01:00
Tom Hughes
c70a1fe933
Add support for GitHub authentication
2016-07-14 09:40:45 +01:00
Tom Hughes
480c17be58
Preserve username and "remember me" when login fails
...
Fixes #1159
2016-02-26 15:32:40 +00:00
Tom Hughes
2ef6a960d1
Update bundle
2016-01-19 09:51:23 +00:00
Tom Hughes
67f3658431
Preserve URL fragments through external authentication
...
Fixes #1102
2015-12-12 16:08:09 +00:00
Tom Hughes
e07890a2ad
Remove bogus mock data from facebook and windowslive tests
2015-06-08 16:27:04 +01:00
Tom Hughes
2b2264ddab
Add support for Windows Live authentication
2015-05-19 14:04:09 +01:00
Tom Hughes
c9893e186b
Add support for Facebook authentication
2015-05-19 14:04:08 +01:00
Tom Hughes
ddaf43bc0e
Add tests for Google OAuth authentication
2015-04-14 10:08:07 +01:00
Tom Hughes
7ed50894e2
Load user_blocks fixtures for login test
2015-04-14 10:07:38 +01:00
Tom Hughes
4607ac2d30
More work on user tests
2015-03-09 00:58:38 +00:00
Tom Hughes
23f568cf3a
A few more edge cases
2015-03-08 23:02:04 +00:00
Tom Hughes
f8de0c1811
Ever more tests...
2015-03-08 16:47:35 +00:00
Tom Hughes
eaf4b32a7f
Rework OpenID tests for new flows using OmniAuth mocking
2015-02-25 01:07:23 +00:00
Tom Hughes
dc2a2c8ebd
Standardise on double quoted strings
2015-02-20 19:47:26 +00:00
Tom Hughes
baf10cd392
Fix rubocop lint issues
2015-02-20 08:56:16 +00:00
Tom Hughes
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
Tom Hughes
dc5c3d6eea
Fix login tests to check whether logins succeed/fail as expected
2015-01-10 17:41:00 +00:00
Tom Hughes
98184dfb9c
Reorganise tests to match modern rails test layout
2014-02-26 00:13:19 +00:00
John Firebaugh
e91956d0f7
Fix test failures
2013-11-19 10:30:18 -08:00
Tom Hughes
d8399d3e18
IntegrationTest is now in ActionDispatch not ActionController
2013-09-21 11:35:46 +01:00
Tom Hughes
2b04242462
Add extra login tests for case insensitive usernames
2011-12-13 21:49:25 +00:00
Tom Hughes
3ae17e46ad
Replace deprecated response.redirected_to with response.redirect_url
2011-11-14 09:42:50 +00:00
Tom Hughes
0ffb08b070
Add some tests for password logins
2011-09-24 15:19:34 +01:00
Tom Hughes
2a635ab28f
Start ROTS for user login tests as well as creation tests
2011-05-21 13:35:15 +01:00
Tom Hughes
c6609cce24
Fixup tests to work after changes to user controller
2010-05-11 14:12:57 +01:00
Kai Krueger
92af0eccd5
Add test for OpenID login and signup
...
The tests need the ROTS (Ruby OpenID Test Server) running.
ROTS can be found at http://github.com/roman/rots
If ROTS is not running, there will be 4 failed test cases, but otherwise
things should work
2010-05-02 11:04:51 +01:00