Hey Folks,
I am wondering if anyone here worked with oAuth Clients in OTDS. I tried Authorization flow and it works great. I am trying to see if Password credentials flow will work with the oAuth client that is created in OTDS.
Thanks
Mahesh
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
A quick search for OTDS OAUTH brings back several documents, KBs etc, have you reviewed those ?
Yes, but I couldn't find anything that talks about Client Credentials flow.
in which case you can ask OT Support if they have anything, but suspect it may end up with OT PS.
POST /otdsws/login HTTP/1.1 Host: localhost:8080 Content-Type: application/x-www-form-urlencoded Content-Length: 134
grant_type=password&client_id=<oauth clientid>&username=<username>@<partition>&client_secret=<ouath client_secret>&password=<Password>
POST /otdsws/login HTTP/1.1 Host: localhost:8080 Content-Type: application/x-www-form-urlencoded Content-Length: 94
grant_type=client_credentials&client_id=<oauth clientid>&client_secret=<client secret>
Thanks for the response but those still didn't work. I was using /otdsws/oauth2/token url but also changed it to /otdsws/login too and no luck. I am getting:
{"error_reason":"client_auth_failed","error_description":"Invalid client credentials","error":"invalid_client"}
Whats interesting is Auth flow works fine but I am looking for Password Credentials / Client Credentials. Btw, I am using PostMan to test this.
Thank you
the error specifically says "invalid client" so I would expect that to be the issue, and double check that. But if everything is OK may be reach out to support.