Thank you for posting this in Microsoft Q&A.
I understand you are Receiving [invalid_token_response] error while implementing OIDC (in Azure) for my Spring Boot Rest API.
Please follow the below steps to fix the issue:
1.Verify that the Tenant ID, Application ID and Application_Secret entered in the application. properties accurate.
2.Try with changing the azure endpoints from v2 to v1. This is done by changing the endpoints.
http://login.microsoft.com/common/oauth2/v2.0/authorize becomes http://login.microsoft.com/common/oauth2/authorize
If you are using Spring Boot version 2.5 or higher is required to complete the steps in this article.
You can also refer to this post where similar issue has been discussed: https://stackoverflow.com/questions/70491599/invalid-token-response-an-error-occurred-while-attempting-to-retrieve-the-oauth
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.