/var/www/localhost/htdocs/openemr/bin # tail -f /var/log/apache2/error.log [Mon Apr 18 13:11:04.505368 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.505307+00:00] OpenEMR.DEBUG: CustomClientCredentialsGrant->getClientCredentials() inside request [] [] [Mon Apr 18 13:11:04.505444 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.505404+00:00] OpenEMR.DEBUG: CustomClientCredentialsGrant->getClientCredentials() client_assertion_type of jwt-bearer. Attempting to retrieve client id [] [] [Mon Apr 18 13:11:04.505621 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.505573+00:00] OpenEMR.DEBUG: CustomClientCredentialsGrant->getClientCredentials() jwt token parsed. Client id is ["A3wnpy-IgyZN6NOxzDVxjajW3f5_NgdKHUbjngYwCn0"] [] [Mon Apr 18 13:11:04.506284 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.506227+00:00] OpenEMR.DEBUG: ClientRepository->getClientEntity() client found {"client":{"client_name":"postman_bulk_export","redirect_uri":"http://3.232.164.182:3000","is_confidential":"1"}} [] [Mon Apr 18 13:11:04.509249 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.509143+00:00] OpenEMR.DEBUG: Token parsed {"claims":{"iss":"A3wnpy-IgyZN6NOxzDVxjajW3f5_NgdKHUbjngYwCn0","aud":["http://3.232.176.248/oauth2/default/token"],"jti":"f8815641-cb4f-41dc-ba01-3c123cc5de58","iat":"{"date":"2022-04-18 13:10:33.920247","timezone_type":1,"timezone":"+00:00"}","nbf":"{"date":"2022-04-18 13:10:33.920247","timezone_type":1,"timezone":"+00:00"}","exp":"{"date":"2022-04-18 13:11:33.920247","timezone_type":1,"timezone":"+00:00"}","sub":"A3wnpy-IgyZN6NOxzDVxjajW3f5_NgdKHUbjngYwCn0"},"headers":{"typ":"JWT","alg":"RS384"},"signature":"AifYnVIYpbW3xWj2L8BkyAPget7vEI8gEO_3JsXBHQOL3Jyldh9qESO5jx9256BrSPFThtxN_fhmEGBsu4i2N4usImJ5wAH28gfK162aHsEllfABcG_mPyAJKyEObIkH8RH_ia2iO3zzOQFxRKB2HHj1bMy3GcOsOi92rwPk3I1zjcaV_pmjDHHaRzRJF75wA2R4t4Pg_CrjVOp3Ma_KY3mO7V_kz0_aQk4IrMMECFL5GP0IG3cRUyHDcyHai9NpufSF28NpgO_hp44e6HavduclGbrBKN_5ToyNhVhr258TEZahP8nlfEmqs1hndvI-PoTLu74AlSTNmqvWOwODCYxiw4SSUlDa1x6AV67lEt0OtFbUZvINeALl3qzYNWRjdXYGHIy2GpbyXervs5Lf03Uu0RfPHG2cKB5NI6ttie4PmdqbCemUd_qAG61mQ8QT0wXzpxyaZPy0rLa4XBIJnDEJygPLn9h7VWV5iLna68jL405UsnIqxSFG3A5lTHogLPWsJR-HjTiOyZ0M6yVWN4q8Yut5j9JPShDWWPiZ-PoSwLaiJSn9Hlb6oUjUmv-4AT3Er4zr3nklNyx6zAcDyPrbbUUy8fwV1nRVl4nPKOe86-MK1qlkUXNzW_hsDZMMSbEXrPJCjl6NgQmeDsjg2pSOxcF-EnPMkhWtfC_BBUo"} [] [Mon Apr 18 13:11:04.509405 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.509355+00:00] OpenEMR.DEBUG: RsaSha384Signer->verify() beginning jwt verification [] [] [Mon Apr 18 13:11:04.516742 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.516678+00:00] OpenEMR.DEBUG: RsaSha384Signer->verify() attempting to retrieve jwk [] [] [Mon Apr 18 13:11:04.516842 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.516789+00:00] OpenEMR.DEBUG: Attempting to find web key for kid & alg {"kid":"","alg":"RS384"} [] [Mon Apr 18 13:11:04.539851 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.539748+00:00] OpenEMR.ERROR: CustomClientCredentialsGrant->validateClient() jwt failed required constraints {"client":"A3wnpy-IgyZN6NOxzDVxjajW3f5_NgdKHUbjngYwCn0","exceptionMessage":"The token violates some mandatory constraints, details:\\n- Token signature mismatch","claims":{"iss":"A3wnpy-IgyZN6NOxzDVxjajW3f5_NgdKHUbjngYwCn0","aud":["http://3.232.176.248/oauth2/default/token"],"jti":"f8815641-cb4f-41dc-ba01-3c123cc5de58","iat":"{"date":"2022-04-18 13:10:33.920247","timezone_type":1,"timezone":"+00:00"}","nbf":"{"date":"2022-04-18 13:10:33.920247","timezone_type":1,"timezone":"+00:00"}","exp":"{"date":"2022-04-18 13:11:33.920247","timezone_type":1,"timezone":"+00:00"}","sub":"A3wnpy-IgyZN6NOxzDVxjajW3f5_NgdKHUbjngYwCn0"},"expectedAudience":"http://3.232.176.248/oauth2/default/token"} [] [Mon Apr 18 13:11:04.540772 2022] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.540688+00:00] OpenEMR.DEBUG: AuthorizationController->oauthAuthorizeToken() OAuthServerException occurred {"hint":"","message":"Client authentication failed","stack":"#0 /var/www/localhost/htdocs/openemr/vendor/league/oauth2-server/src/Grant/ClientCredentialsGrant.php(45): OpenEMR\\\\Common\\\\Auth\\\\OpenIDConnect\\\\Grant\\\\CustomClientCredentialsGrant->validateClient()\\n#1 /var/www/localhost/htdocs/openemr/vendor/league/oauth2-server/src/AuthorizationServer.php(204): League\\\\OAuth2\\\\Server\\\\Grant\\\\ClientCredentialsGrant->respondToAccessTokenRequest()\\n#2 /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php(1050): League\\\\OAuth2\\\\Server\\\\AuthorizationServer->respondToAccessTokenRequest()\\n#3 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(73): OpenEMR\\\\RestControllers\\\\AuthorizationController->oauthAuthorizeToken()\\n#4 {main}"} [] [php:notice] [pid 148] [client 3.232.164.182:53598] [2022-04-18T13:11:04.539748+00:00] OpenEMR.ERROR: CustomClientCredentialsGrant->validateClient() jwt failed required constraints {"client":"A3wnpy-IgyZN6NOxzDVxjajW3f5_NgdKHUbjngYwCn0","exceptionMessage":"The token violates some mandatory constraints, details:\\n- Token signature mismatch","claims":{"iss":"A3wnpy-IgyZN6NOxzDVxjajW3f5_NgdKHUbjngYwCn0","aud":["http://3.232.176.248/oauth2/default/token"],"jti":"f8815641-cb4f-41dc-ba01-3c123cc5de58","iat":"{"date":"2022-04-18 13:10:33.920247","timezone_type":1,"timezone":"+00:00"}","nbf":"{"date":"2022-04-18 13:10:33.920247","timezone_type":1,"timezone":"+00:00"}","exp":"{"date":"2022-04-18 13:11:33.920247","timezone_type":1,"timezone":"+00:00"}","sub":"A3wnpy-IgyZN6NOxzDVxjajW3f5_NgdKHUbjngYwCn0"},"expectedAudience":"http://3.232.176.248/oauth2/default/token"} []