It's all about the answers!

Ask a question

Getting error oauth_problem=invalid_consumer_key when running DoorsOauthSample from

Jitendra Kharche (11) | asked Aug 09 '20, 1:13 p.m.


I am running the sample DoorsOauthSample from
I am getting following error:

<<<<<<<< HTTP response:
HTTP/1.1 401 Unauthorized
Date: Sun, 09 Aug 2020 11:34:58 GMT
WWW-Authenticate: OAuth realm="", oauth_problem="invalid_consumer_key"
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Content-Language: en-US
Content-Length: 34
Strict-Transport-Security: max-age=31536000; includeSubDomains
Cache-Control: proxy-revalidate
Connection: Keep-Alive
Set-Cookie: Node=jazzweb1|Xy/fZ; path=/
Set-Cookie: BCSI-CS-87974f0cf329b5ec=1; Path=/

at net.oauth.client.OAuthResponseMessage.toOAuthProblemException(
at net.oauth.client.OAuthClient.invoke(
at net.oauth.client.OAuthClient.invoke(
at net.oauth.client.OAuthClient.getRequestTokenResponse(
at net.oauth.client.OAuthClient.getRequestToken(
at net.oauth.client.OAuthClient.getRequestToken(
at net.oauth.client.OAuthClient.getRequestToken(
at org.eclipse.lyo.client.oslc.OslcOAuthClient.getResourceInternal(
at org.eclipse.lyo.client.oslc.OslcOAuthClient.getResource(
at org.eclipse.lyo.client.oslc.samples.DoorsOauthSample.main(

What could be the issue?
I am able to get the ServiceProviders using Postman HTTP Client.

Ralph Schoon commented Aug 10 '20, 3:53 a.m.
I am able to get the ServiceProviders using Postman HTTP Client.
You are able to do that using OAuth?

Jitendra Kharche commented Aug 12 '20, 1:41 p.m.

I am sorry if I was not clear in my question. 

When I run the DoorsOAuthSample I get the above exception. However if I try to access the catalog using Postman Http Client it works. My question is why it is not working through DoorsOAuthSample?
Hope I am clear now.

Be the first one to answer this question!

Register or to post your answer.