Error when i tried to get the outh token

Abigail
Tera Expert

Hello, I have a problem when trying to get the OAuth token:
"OAuth flow failed. Verify the configurations and try again. Error detail: failed to request a token."

I'm using the PROD Intune credentials in both instances—DEV and QA in ServiceNow. It works fine in DEV, but when I try to use the same credentials in QA instance, I get this error. The message is quite generic, so I’m not sure what the issue is.

My assumption is that it might be because I'm using the same client credentials for both environments.

Do I need to create a separate client secret ID in Azure for the QA instance?

If you have any other ideas on why it might be failing, please let me know. Thanks!

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Abigail 

check with intune team if they have configured different credentials for QA

if yes then ask them and update

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hello @Ankur Bawiskar 
I'm currently using the same PROD credentials from Intune.
Do I need to set up separate credentials for DEV and QA in ServiceNow in Azure?

@Abigail 

Yes usually the credentials are different for diff environments.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader