Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Create an OAuth API endpoint for external clients

Hai Nguyen Duu
Tera Contributor

"Exception on token flow - unsupported_grant_type_for_pkce: Grant type password is not supported. PKCE only supports authorization code flow: no thrown error". This is the system log message after I sent a request to get the refresh token from Postman . I has created new rest user with web service access only, grant_type is also "password". I found that there was no post or same issue related this error.

3 REPLIES 3

PLaxmiPrasanna
Tera Contributor

same issue, any resolution?

Daniel Borkowi1
Mega Sage

Hi @Hai Nguyen Duu  and @PLaxmiPrasanna, the Grant type for non interactive user can only be JWT Bearer or Client Credentials see https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0818290.

 

Greets
Daniel

Please mark reply as Helpful/Correct, if applicable. Thanks!

MattSN
Mega Sage

A similar error string can happen if you are missing the property  

 

glide.oauth.inbound.client.credential.grant_type.enabled

 

https://www.servicenow.com/docs/csh?topicname=create-cc-sys-prop.html&version=latest