WSO2 APIM giving authentication failure while I am trying to authenticate API using OAuth2 but working fine with apikey. No change implemented at configs level and it was working earlier fine but now giving below error
{
"code": "900901",
"message": "Invalid Credentials",
"description": "Access failure for API: /letshego-api-gw/test/v1, version: v1 status: (900901) - Invalid Credentials. Make sure you have provided the correct security credentials"
}
I have checked the DB table IDN_OAUTH2_ACCESS_TOKEN and the token_state is ACTIVE.
Below errors are coming in the logs while hitting the API
[2024-04-30 14:50:04,455] WARN - APIAuthenticationHandler API authentication failure due to Invalid Credentials for requestURI=/letshego-api-gw/test/v1/test/mock
I am using Resident KeyManager for authentication and Postgres DB for configs.
What could be the reason for this issue?