Expand my Community achievements bar.

Access token provider client id parameter error

Avatar

Level 2

Hi,

 

I am getting following error when trying to get the token using the AccessTokenProvider.getAccessToken() method. Please help :

 

Where Can I configure the client id ?

 

07.03.2021 11:16:32.175 INFO [0:0:0:0:0:0:0:1 [1615137391909] GET /services/runtimesample HTTP/1.1] com.wm.services.impl.RuntimeSampleImpl Exception ocver end {}
java.io.IOException: failed to get access token from authorization server status: 400 response: {"error":"invalid_client","error_description":"invalid client_id parameter"}
at com.adobe.granite.auth.oauth.impl.AccessTokenProviderImpl.tradeAccessToken(AccessTokenProviderImpl.java:668) [com.adobe.granite.auth.oauth:1.5.54]

4 Replies

Avatar

Community Advisor

Hi,

From where you are trying to get a token? is it the external identity server? it looks like not able to connect to an external server or timeout.



Arun Patidar

Avatar

Level 2
I am trying to get using the AccessTokenProvider from AEM, and the endpoint is "https://ims-na1.adobelogin.com".

Avatar

Community Advisor
I would suggest to check the callback url and corresponding parameter i.e. client_id , if specific format is required.


Arun Patidar

Avatar

Level 2
I am not sure where can I configure the client_id parameter..