Hi,
I am currently facing an issue where when try to call a custom api using the auth token I am getting "401 - Unauthorized: Access is denied due to invalid credentials.", This was working fine before but now when i use it it giving this error.
I am suspecting issue with OAuth as when I try to open "OAuth 2.0 integrated applicaitons" in system design, the page breaks as unresponsive due to following api getting error:
Endpoint : /0/api/OAuthHealthCheck
Response : {"Message":"An error has occurred."}
Due to this i am not even able to intract with the page to add/edit/delete the existing entries of OAuth.
I am using an online Instance and for ref the same api is working fine with Cookies in header instead of OAUTH token.
Can any one guide me on What might be going wrong here and how to fix it?
Thanks in advance for your support!!
Like
Hello,
The 401 Unauthorized together with a failing /0/api/OAuthHealthCheck usually indicates that the application cannot validate OAuth tokens. This can happen if the Identity Service URL is unreachable, the signing keys have rotated, or the OAuth application configuration became invalid.
Steps to check:
Open https://<your-site>/0/api/OAuthHealthCheck and also the Identity Service metadata endpoints (.well-known/openid-configuration) in a browser. They must return valid JSON.
Verify that the OAuth 2.0 integrated application still has a valid client secret and redirect URI. If the secret was rotated or expired, update it.
Hello @Kalymbet Anastasia,
https://<your-site>/0/api/OAuthHealthCheck does not returns a Valid JSON. It returns following response {"Message":"An error has occurred."}
While ".well-known/openid-configuration", Returns a valid JSON.
So this means the Identity sever is active and accepting connection but the Creatio Instance is not able to Connect or validate the token?
If so what should be the next steps?
Thank you !!
Madhav Patel,
Hello!
We need the application logs to investigate the root cause of the issue.
Please create a support ticket by contacting us via email at: support@creatio.com
Regards,
Orkhan