We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Create an OAuth API endpoint for external clients

Not applicable

"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.

4 REPLIES 4

PLaxmiPrasanna
Tera Contributor

same issue, any resolution?

Daniel Borkowi1
Mega Sage

Hi @Community Alums  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

This got me past one hurdle! I followed it up with this to get me the rest of the way to my goal.