Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Access token provider client id parameter error

NareshBabu
Level 2
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
Arun_Patidar
Community Advisor
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.

NareshBabu
Level 2
Level 2
I am trying to get using the AccessTokenProvider from AEM, and the endpoint is "https://ims-na1.adobelogin.com".
Arun_Patidar
Community Advisor
Community Advisor
I would suggest to check the callback url and corresponding parameter i.e. client_id , if specific format is required.
NareshBabu
Level 2
Level 2
I am not sure where can I configure the client_id parameter..