Commit Graph

151 Commits

Author SHA1 Message Date
Blake Erickson 04ef6494de Add support for scope and add some missing translations
See this post on meta about the need for the ability to request a custom
scope:

https://meta.discourse.org/t/oauth2-basic-support/33879/116?u=blake
2018-05-25 15:35:52 -06:00
Blake Erickson f60a5799a1
Merge pull request #13 from misaka4e21/master
FEATURE: Support avatar retrieval.
2018-05-25 11:39:24 -06:00
misaka4e21 f603604caa
FEATURE: Support avatar retrieval. 2018-05-25 14:34:50 +08:00
Blake Erickson bce6e9e878 ADD: can now walk json that contains arrays
I feel like this is kind of a hack to handle a change with Auth0 where
the actual user id is inside of an array of identities. While I do think
it would be good to build an actual plugin for Auth0 to better handle
their use case I do feel that it is important that we can handle Auth0
with this plugin for now.
2018-05-16 14:53:10 -06:00
Robin Ward 6260d0e9b0 FIX: Default used to be POST 2018-04-25 13:22:06 -04:00
Neil Lalonde f8333961e4 Update translations 2018-04-24 10:32:46 -04:00
Robin Ward 7c80a9c818
Merge pull request #12 from davidmh/feature/add-token-and-user-request-methods
Add request methods for token and user_json urls
2018-04-23 13:20:56 -04:00
David Mejorado 6b5d7b4ef2 Remove unnecessary requires 2018-04-23 09:45:41 -07:00
David Mejorado 4d0be8081a Bump minor version 2018-04-20 19:33:53 -07:00
David Mejorado 287dcc15cc Add request methods for token and user_json urls
Defaults to `GET`.

Context:

https://meta.discourse.org/t/oauth2-basic-support/33879/66?u=davidmh
2018-04-20 15:58:24 -07:00
Neil Lalonde 71d3648c95 Update translations 2018-03-07 14:19:18 -05:00
Neil Lalonde 0de638523b Update translations 2018-01-31 11:14:54 -05:00
Neil Lalonde 41a5d0a32e Update translations 2017-12-29 16:41:40 -05:00
Neil Lalonde e4bbb81793 Transifex integration 2017-12-08 15:21:07 -05:00
Guo Xiang Tan ee5bca98f0 Merge pull request #10 from LeoMcA/master
FIX: make work with user_emails migration
2017-09-07 18:57:22 +08:00
Leo McArdle f0151cdea6 add spec 2017-09-06 23:15:10 +01:00
Leo McArdle 8fc2429496 FIX: make work with user_emails migration 2017-09-05 20:12:45 +01:00
Guo Xiang Tan be6b6ee9bb Fix rubocop offenses. 2017-08-02 15:05:31 +09:00
Robin Ward 4996165a84 SECURITY: Always validate `state` parameter 2017-05-17 15:24:43 -04:00
Robin Ward e2e999014f Add temporary parameter to ignore state with oauth2 basic 2017-05-08 10:53:46 -04:00
Arpit Jalan 4966993246 Merge pull request #9 from jomaxro/patch-1
Add URL to plugin.rb
2017-04-26 11:14:28 +05:30
jomaxro 1a60017cc0 Add URL to plugin.rb 2017-04-26 00:42:12 -04:00
Robin Ward 5959f5f1bb FIX: Don't add `code` and `state` since most servers dont' want it 2017-03-28 17:35:41 -04:00
Neil Lalonde 6cbeeffc73 after successful auth, add record to PluginStore if record doesn't already exist 2016-11-04 11:34:24 -04:00
Arpit Jalan 56e735b29b add License 2016-06-06 23:12:51 +05:30
Sam 5efdb91abb remove debug code 2016-05-28 10:17:02 +10:00
Sam 120e2cfce4 jiggle stuff till it works 2016-05-27 18:10:01 +10:00
Sam 104d79d77e note on replacements 2016-05-27 18:03:10 +10:00
Sam ac16343335 pull in id from token 2016-05-27 17:58:02 +10:00
Sam 812364b9bb try id 2016-05-25 18:21:00 +10:00
Sam e8b2307acd Add setting for authorize options 2016-05-25 17:46:06 +10:00
Sam 9332779972 auth object is way to heavy 2016-05-25 16:40:57 +10:00
Sam 5bf30f90c2 we need more logging and somehow some stuff is being suppressed 2016-05-25 16:23:09 +10:00
Sam 870361be98 add option for debugging of auth 2016-05-25 15:44:18 +10:00
Robin Ward 7584d84986 Add option for setting Authorization header 2015-12-04 10:59:57 -05:00
Régis Hanol c702e59c49 Merge pull request #8 from mikhailvink/master
Improvement: downcase the email when searching for an account by email
2015-11-16 11:25:28 +01:00
Mikhail Vink b557addab2 Improvement: downcase the email when searching for an account by email
Improvement of 2b9869e (FEATURE: If the email is verified, we can use that to find accounts): Downcasing the email which has been got from the OAuth provider, as the email entity is not case-sensitive in Discourse.
2015-11-15 21:23:09 +01:00
Robin Ward 2b9869ef2e FEATURE: If the email is verified, we can use that to find accounts 2015-11-13 12:07:28 -05:00
Robin Ward fcc4b415a4 FIX: Broken translation key 2015-11-13 12:01:12 -05:00
Robin Ward 27ff369904 FIX: Looks like `token_params` weren't being attached properly 2015-11-11 13:00:40 -05:00
Robin Ward 1961285970 Updated README 2015-10-26 12:48:19 -04:00
Robin Ward 7bc71b5378 FIX: Include the `Authorization` header for services that need it 2015-10-26 12:46:42 -04:00
Robin Ward 20a3bbe123 Merge pull request #5 from zigomir/patch-1
Update README.md
2015-10-21 02:42:51 +11:00
Žiga Vidic 77d9e7b2b5 Update README.md 2015-10-20 16:56:05 +02:00
Robin Ward fc46c60a81 Add `Authorization` header support. 2015-10-01 15:34:30 -04:00
Robin Ward 5fc546cf88 Merge pull request #1 from Dorthu/master
Fixes property name for user_id
2015-10-01 15:31:28 -04:00
Will Smith dd9f7404bc Fixes property name for user_id 2015-10-01 14:59:53 -04:00
Robin Ward 9d89fa1214 FIX: Extra comma 2015-09-29 12:23:49 -04:00
Robin Ward 8844abdb30 Another JSON fix 2015-09-24 16:46:43 -04:00
Robin Ward 1e1d3a7bd1 Fixed the docs a bit 2015-09-24 16:46:13 -04:00