About Copilot-ServiceNow authentication

takei
Tera Expert

Hello
I would like to obtain ServiceNow knowledge using the ServiceNow connector "GetKnowledgeArticles" from Copilot Studio.
I understand that there are three authentication methods: "Basic Authentication", "OAuth2.0", and "MiscroSoft Entra ID", but I cannot find any documentation on how to set them up.
If you are aware of the following points, please let me know.
・Setting methods and documents related to each authentication method
・I understand that "Basic authentication" and "OAuth2.0" can acquire knowledge based on the role of the user used for authentication, and "MiscroSoft Entra ID" can acquire knowledge based on the role of the user's ServiceNow account. Is it okay?

 

Below is the document I referred to.

https://learn.microsoft.com/connectors/service-now/
https://learn.microsoft.com/microsoft-copilot-studio/advanced-connectors

 

thank you.

5 REPLIES 5

hi @SafiC & @shamill70_mh 

Looks Copilot Studio is attempting to use PKCE (Proof Key for Code Exchange), but the ServiceNow OAuth configuration or the request from Copilot Studio is not properly handling it.
You can check bellow:
- Since Postman worked for you without PKCE, test the OAuth flow with PKCE to isolate whether the issue is on the ServiceNow side.

- i am not to much aware about the 'Copilot studio', you can check if Copilot Studio has an option to enable/disable PKCE or set the code_challenge_method. If it’s enabled by default (likely), ensure code_challenge_method is set to S256 (SHA-256), as this is the standard for PKCE.

If this not resolved your issue, I will suggest reach out to ServiceNow support or CoPilot Studio support for further assistance

I hope this will help you to resolve your issue.

Thank you

Rajesh