Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Client error #11

Open
NiharP opened this issue Jun 28, 2016 · 1 comment
Open

Adding Client error #11

NiharP opened this issue Jun 28, 2016 · 1 comment

Comments

@NiharP
Copy link

NiharP commented Jun 28, 2016

Could you please provide me instructions how can i add client?
I am able to add row to the oauth_client_details table.
Because of which, when i call /oauth/token rest service. I am getting unauthorized access error.
Can you please explain me how to add client?

Thanks

@emersonf
Copy link
Member

emersonf commented Jun 29, 2016

The documentation is surprisingly lacking, I thought we had instructions on getting access tokens. We'll get that fixed.

Adding a row to oauth_client_details is correct. Once you do, you should use HTTP Basic to request the access token from the /oauth/token endpoint. If the client ID is testClient and the client secret is testClientSecret, then Base64 encode testClient:testClientSecret and set it as an Authorization header, in this case with value Basic dGVzdENsaWVudDp0ZXN0Q2xpZW50U2VjcmV0. You can see examples in the Postman requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants