Error using discourse-oauth2-basic plugin with NeonCRM

Hey Denis,

I’m using mattermost so it’s behaving differently.
However, your info made me look more at the settings and I have it working, thanks!!

Here are my settings for mattermost as an oauth2 provider to discourse:

Settings in text for search engines:

oauth2 client id: <client id from mattermost oauth2 provider setup>
oauth2 client secret: <client secret from mattermost oauth2 provider setup>
oauth2 authorize url: https://chat.animalrebellion.org/oauth/authorize
oauth2 token url: https://chat.animalrebellion.org/oauth/access_token
oauth2 token url method: POST
oauth2 callback user id path:
oauth2 callback user info paths
oauth2 fetch user details: CHECKED
oauth2 user json url: https://chat.animalrebellion.org/api/v4/users/me
oauth2 user json url method: GET
oauth2 json user id path: id
oauth2 json username path: username
oauth2 json name path: username
oauth2 json email path: email
oauth2 json email verified path: email_verified
oauth2 json avatar path:
oauth2 email verified: CHECKED

On the mattermost side, the callback url is set as:
https://base.animalrebellion.org/auth/oauth2_basic/callback

Still would like to see how to join: first_name and last_name into the “jason name path” as full_name, but can live with just using the “username” or “first_name” property.

HTH

Cheers!
Beam

Links to resources:
Link to plugin: https://github.com/discourse/discourse-oauth2-basic
Link to how to install discourse plugin: Install Plugins in Discourse

1 Like