invalid request while integrating to salesforce

oluseyiasol
Tera Contributor

When i click on the Get oAuth Token link i get the following error message: 

error=invalid_request&error_description=missing%20required%20code%20challenge

 

i have attached screenshots on both Salesforce and Servicenow .

oluseyiasol_0-1779994788518.png

 

oluseyiasol_1-1779994847206.png

 

 

oluseyiasol_2-1779995125739.png

 

 

Can someone point me to where I should be looking at in terms of troublsshooting?

1 REPLY 1

Tanushree Maiti
Giga Patron

Hi @oluseyiasol 

 

Try two options:

1. change Grant_type = Client credential and generate the token 

OR

2. for your error, 

Check "public client" check box in your oauth profile, 

then add value in new field code_challenge_method=S256 

 

 

Refer: https://www.servicenow.com/community/hrsd-forum/how-to-use-pkce-in-application-registrie/m-p/2640690...

 

https://community.powerplatform.com/forums/thread/details/?threadid=5ef8fce8-0613-f011-998a-7c1e5219...

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: