RESTClient icon indicating copy to clipboard operation
RESTClient copied to clipboard

Oauth 2.0 using grant type "client credentials" does not work

Open skshandilya opened this issue 7 years ago • 7 comments

I just get busy cursor when I click "request token", the dialog box does not close, am I missing something?

skshandilya avatar Feb 14 '18 05:02 skshandilya

Could you please provide more details? You can use web developer tool to view the requests send by RESTClient in network tab. It will be helpful if you can post the request and the logs in console tab (remember to mask your sensitive data first).

screen shot 2018-02-15 at 4 07 18 pm screen shot 2018-02-15 at 4 07 29 pm

chao avatar Feb 15 '18 08:02 chao

I think I did not make myself clear the issue is happening before getting the token itself, see screenshot and the request token button gets locked in busy state. nothing happens when I use the developer console oauth2_fail

skshandilya avatar Feb 15 '18 15:02 skshandilya

I am using firefox 58.0.2 64bit, the latest. I guess oauth2 is yet to be implement for this browser

skshandilya avatar Feb 15 '18 15:02 skshandilya

When you click the "request token" button RESTClient will initialize a XMLHttpRequest in web worker (at background) and set the button status to "loading". Something is wrong in the request, it will be helpful if you could open "Web developer tools" and provider some debug logs.

chao avatar Feb 23 '18 02:02 chao

Please update to version 3.0.7 and try again.

chao avatar Feb 23 '18 06:02 chao

Not working on 3.0.7 also. The request is not visible in Web developer tools "network monitor" I see this in the bottom pane on "network monitor"

[index.js] request url changed, decide request SEND button status. GET https: false index.js:4:18827 [index.js] request url changed, decide request SEND button status. GET https://blah:8443/blah true index.js:4:18827 [request.js] request url changed request.js:69:5 [index.js] request url changed, decide request SEND button status. GET https://blah:8443/blah true index.js:4:18827 [request.js] request url changed request.js:69:5 [oauth2.js] storage loaded! Object { } oauth2.js:321:9 [oauth2.js] grant type changed credentials

In client credentails the obtained token needs to be saved in the local storage till it expires?

skshandilya avatar Feb 26 '18 10:02 skshandilya

@skshandilya Could you email me your parameters ( you may mask out your client secret first ) ? My email address is [email protected] , that will be very helpful to find the bug.

chao avatar Feb 27 '18 02:02 chao