Commit Graph

108 Commits

Author SHA1 Message Date
Discourse Translator Bot 13ed44486a Update translations 2020-09-22 13:05:19 +00:00
Discourse Translator Bot 1f6eced849 Update translations 2020-09-16 10:19:28 +00:00
Discourse Translator Bot d2cb7e9470 Update translations 2020-08-18 13:03:21 +00:00
Discourse Translator Bot 399685ee83 Update translations 2020-08-11 13:05:09 +00:00
Discourse Translator Bot 3c3aa6e0b0 Update translations 2020-08-05 13:29:14 +00:00
Discourse Translator Bot 16543fad72 DEV: Switch from Transifex to Crowdin 2020-07-16 14:01:06 +02:00
Neil Lalonde c6245de6fb
Update translations 2020-06-24 11:41:41 -04:00
Neil Lalonde 6dc9131fb9
Update translations 2020-05-27 16:54:50 -04:00
Neil Lalonde e045df91d7
Update translations 2020-05-04 10:50:16 -04:00
Guo Xiang Tan 56e32d9bf6
DEV: Move to rubocop-discourse. 2020-05-04 10:34:14 +08:00
David Taylor 5984e52dc6
DEV: Fix rubocop offences 2020-04-30 18:49:15 +01:00
David Taylor be136eacb4
FEATURE: Allow disabling request_body authentication for token endpoint
By default we include both authentication data in both the Authorization header, and in the request body. This provides maximum compatibility, although is technically a breach of the OAuth2 specification. This commit introduces a new site setting `oauth2_send_auth_body`, which allows the behavior to be controlled.
2020-04-30 17:28:22 +01:00
David Taylor d8a8724f2b
FEATURE: Add detailed OAuth2 request and response logs
This makes use of Faraday middleware to log precise details about all requests made by the OAuth2 gem. This should make it easier to debug configuration issues
2020-04-30 17:15:35 +01:00
Josh Kerxhalli-Kleinfield ca5f555750
FEATURE: Allow using array indexes in json paths (#22) 2020-04-21 14:46:42 +01:00
David Taylor 1b9937b27d
DEV: Remove deprecated use of full_screen_login_setting 2020-04-20 14:20:02 +01:00
David Taylor 47a8211d9a
DEV: Correct OAuth2BasicAuthenticator namespace, remove spec workarounds 2020-04-14 21:32:35 +01:00
David Taylor 72d655bc44
UX: Update copy for site settings 2020-04-09 11:40:45 +01:00
Neil Lalonde 879dca616d Update translations 2020-02-25 10:33:50 -05:00
Neil Lalonde 0bf0cd46d3 Update translations 2020-01-20 11:22:14 -05:00
Neil Lalonde 8a36ac21c9 Update translations 2019-12-19 12:51:15 -05:00
Penar Musaraj b00dce0684 Rubocop redundant return fix 2019-11-14 15:08:57 -05:00
Neil Lalonde 0206827e30 Update translations 2019-11-06 10:47:00 -05:00
David Taylor 8d9945040c
UX: Update copy for email_verified_path setting 2019-11-06 13:08:27 +00:00
Neil Lalonde 2079d46a4a Update translations 2019-10-10 11:26:23 -04:00
David Taylor 550d0bdee1 FIX: Ignore non-numeric values when migrating from old data format
This fixes 'invalid input syntax for integer' errors when the old data is invalid
2019-08-07 16:09:42 +01:00
Penar Musaraj e49eb3bd9f Make Rubocop happy 2019-07-29 21:32:27 -04:00
David Taylor ce839a5d5c FIX: Ignore duplicate user_ids when migrating old data
The old storage mechanism had no unique index on the user_id, so it is possible to have bad data. In this case, take the first value, and ignore the rest.
2019-07-27 16:50:54 +01:00
Angus McLeod 5ae9f35e81 FEATURE: Migrate to ManagedAuthenticator (#21)
This brings the plugin in-line with recent core improvements. Advantages include

- Account-linking logic and storage is shared between all authentication providers
- Optionally, users can be allowed to disconnect/reconnect their accounts
- The 'last used' date of an association is recorded
- Association metadata is recorded in the database for use in data explorer and other plugins

Data migration will be performed automatically, and all existing functionality is maintained.
2019-07-27 16:34:17 +01:00
Neil Lalonde 4c833e83c5 Update translations 2019-07-15 14:02:20 -04:00
Angus McLeod eb31cdf44f Handle fetch user details failure (#20)
* handle failure in get_user_details request

* add spec

* improve spec

* return nil on failure
2019-07-11 10:31:51 -04:00
Yaron Shahrabani c543110334 Typo fixed (#19)
verfied -> verified.
2019-07-07 10:05:42 -04:00
Angus McLeod a634ff896d Use token callback user details (#18)
* Add way to use user details returned in token response

* Add spec

* Apply suggestions from code review

Co-Authored-By: Robin Ward <robin.ward@gmail.com>
2019-07-05 10:27:07 -04:00
Angus McLeod ef5b3ee1ff FEATURE: Allow provider to set email verification state (#17) 2019-06-26 11:03:52 +01:00
David Taylor 725717339e DEV: Remove use of deprecated parameter 2019-06-26 10:52:23 +01:00
Neil Lalonde e6bf026293 Update translations 2019-06-17 13:58:00 -04:00
Neil Lalonde fe9bd20582 Update translations 2019-05-30 11:32:18 -04:00
Guo Xiang Tan c13a7b6f61
FIX: Keep compatibility with older version of Discourse. 2019-05-14 16:39:59 +08:00
Guo Xiang Tan 5a459fbb6e Add frozen string literal comment to files. 2019-05-13 10:49:26 +08:00
Neil Lalonde dcb9e31b7d Update translations 2019-04-05 10:16:17 -04:00
David Taylor 722fe23b4e FEATURE: Add site setting to override user email address during login 2019-03-26 20:38:46 +00:00
David Taylor 4ccc4d1d5a FIX: Send the `Accept: application/json` header when fetching user JSON 2019-03-12 11:58:40 +00:00
David Taylor 46da0c9df4 DEV: Add travis configuration 2019-02-05 15:02:07 +00:00
David Taylor 090f63c429 FIX: Download avatar for new users
Previously avatars were only loaded on subsequent logins
2019-02-05 14:53:34 +00:00
Neil Lalonde f327bf7f32 Update translations 2019-01-31 16:44:30 -05:00
David Taylor 65339a2018
FIX: Add name key to translation file 2019-01-29 20:03:49 +00:00
Gerhard Schlager fd60811052 Inherit rubocop config from discourse repo 2018-12-03 00:37:17 +01:00
Neil Lalonde 4f675957da Update translations 2018-11-29 11:09:19 -05:00
David Taylor 9ad5050143 DEV: Apply rubocop 2018-10-22 20:13:46 +01:00
Neil Lalonde 9f48759517 Update translations 2018-09-10 14:02:44 -04:00
Vinoth Kannan 9fd171008b
README: How to test this plugin in local dev environment? 2018-09-05 02:25:48 +05:30