Skip to content

Commit

Permalink
[FIX] Wordpress oAuth authentication wasn't behaving correctly (#10550)
Browse files Browse the repository at this point in the history
* Changed identityPath and added identityTokenSentVia, authorizePath and tokenPath to oauth config

* Added scope to oauth configuratuin
  • Loading branch information
kaiiiiiiiii authored and rodrigok committed Apr 24, 2018
1 parent f1ad310 commit 159ad34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/rocketchat-wordpress/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

const config = {
serverURL: '',
identityPath: '/oauth/me',
identityPath: '/rest/v1/me',
identityTokenSentVia: 'header',
authorizePath: '/oauth2/authorize',
tokenPath: '/oauth2/token',
scope: 'auth',
addAutopublishFields: {
forLoggedInUser: ['services.wordpress'],
forOtherUsers: ['services.wordpress.user_login']
Expand Down

0 comments on commit 159ad34

Please sign in to comment.