David Taylor
46dc189850
DEV: Improve robustness of associate_accounts_controller
...
This handles a few edge cases which are extremely rare (due to the UI layout), but still technically possible:
- Ensure users are authenticated before attempting association.
- Add a message and logic for when a user already has an association for a given auth provider.
2021-08-10 15:07:40 +01:00
David Taylor
2cae29f644
DEV: Update associate_accounts_controller to use secure_session
...
This is much cleaner than using redis directly. It also opens the door to more complex association change flows which may happen during login.
2021-08-10 15:07:40 +01:00
Ikko Ashimine
9431051ac1
FIX: misspelling in associate_accounts_controller_spec.rb
...
non-existant -> non-existent
2021-06-04 13:55:35 +08:00
David Taylor
dc005c593e
DEV: Introduce `:before_auth` DiscourseEvent ( #11233 )
...
This is useful for plugins to manipulate the auth hash from OmniAuth before it is read by the Authenticator class
2020-11-13 14:41:54 +00:00
Jarek Radosz
781e3f5e10
DEV: Use `response.parsed_body` in specs ( #9615 )
...
Most of it was autofixed with rubocop-discourse 2.1.1.
2020-05-07 17:04:12 +02:00
Dan Ungureanu
ae9e881333
DEV: Add test to ensure :after_auth event is triggered ( #8400 )
...
Follow-up to ee8669d778
.
2019-11-25 14:31:57 +02:00