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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Getting the error "Error in Getting Access Token" while integrating CQ5 with Salesforce

MRG
Level 1
Level 1

I followed the steps as per the article "Integrating with Salesforce" to integrate CQ5 with salesforce, but I am getting the error "Error in Getting Access Token".

"maruthid" also faced this issue and raised his question in "Integrating CQ and salesforce and possible options" on December 30, 2013, but didn't get any response.

Please help me if someone knows a solution for this. Your help would be greatly appreciated.

1 Accepted Solution
AllDayDev
Correct answer by
Employee
Employee

I was not getting the same error as you, but I checked my settings for a test app I had created, and found that I would get an "invalid_grant" error in Cloud Services configuration with some OAuth Scope configurations set for my test app.

 

One of these two configurations seemed to be required for it to work and connect properly into AEM (or into anything else).

[img]api-access.png[/img]

[img]full-access.png[/img]

 

You can certainly select more (even all) of the available OAuth Scopes, and it should continue to work (it did for me).

 

Let us know if that works for you. Assuming it does, we can get the documentation updated to be more clear about what minimum OAuth Scopes are required.

View solution in original post

4 Replies
AllDayDev
Correct answer by
Employee
Employee

I was not getting the same error as you, but I checked my settings for a test app I had created, and found that I would get an "invalid_grant" error in Cloud Services configuration with some OAuth Scope configurations set for my test app.

 

One of these two configurations seemed to be required for it to work and connect properly into AEM (or into anything else).

[img]api-access.png[/img]

[img]full-access.png[/img]

 

You can certainly select more (even all) of the available OAuth Scopes, and it should continue to work (it did for me).

 

Let us know if that works for you. Assuming it does, we can get the documentation updated to be more clear about what minimum OAuth Scopes are required.

View solution in original post

vdhim23
Level 5
Level 5

Have you added the instanceUrl in the configuration node. Also OAuth scope should include refresh_token in your SF App.

Regards

MRG
Level 1
Level 1

Thanks for your response. I tried the configurations as you suggested but no luck. Getting the same error.

Chandra_gupta
Level 4
Level 4

HI,

I have IP relaxation and selected all scope in Connected APP. but still getting Invalid_token error

{"error":"invalid_grant","error_description":"expired authorization code"}

You got working with Any AEM version?