Hi,
I enabled debug mode and got the following error when trying to authenticate from our Angular app. Plugin version 4.1.5
Warning: file_get_contents(/var/www/html/wp-content/uploads/wo-keys//private_key.pem): failed to open stream: No such file or directory in /var/www/html/wp-content/plugins/oauth2-provider/library/WPOAuth2/ResponseType/JwtAccessToken.php on line 124
Warning: openssl_sign(): supplied key param cannot be coerced into a private key in /var/www/html/wp-content/plugins/oauth2-provider/library/WPOAuth2/Encryption/Jwt.php on line 114
Fatal error: Uncaught Exception: Unable to sign data. in /var/www/html/wp-content/plugins/oauth2-provider/library/WPOAuth2/Encryption/Jwt.php:115 Stack trace: #0 /var/www/html/wp-content/plugins/oauth2-provider/library/WPOAuth2/Encryption/Jwt.php(100): WPOAuth2\Encryption\Jwt->generateRSASignature('eyJ0eXAiOiJKV1Q...', false, 7) #1 /var/www/html/wp-content/plugins/oauth2-provider/library/WPOAuth2/Encryption/Jwt.php(16): WPOAuth2\Encryption\Jwt->sign('eyJ0eXAiOiJKV1Q...', false, 'RS256') #2 /var/www/html/wp-content/plugins/oauth2-provider/library/WPOAuth2/ResponseType/JwtAccessToken.php(130): WPOAuth2\Encryption\Jwt->encode(Array, false, 'RS256') #3 /var/www/html/wp-content/plugins/oauth2-provider/library/WPOAuth2/ResponseType/JwtAccessToken.php(78): WPOAuth2\ResponseType\JwtAccessToken->encodeToken(Array, 'RZsVRv1GpWVkuSg...') #4 /var/www/html/wp-content/plugins/oauth2-provider/library/WPOAuth2/ResponseType/AccessToken.php(52): WPOAuth2\ResponseType\JwtAccessToken->createAccessToken('RZsVRv1GpWVkuSg...', 1, 'openid', fals in /var/www/html/wp-content/plugins/oauth2-provider/library/WPOAuth2/Encryption/Jwt.php on line 115
There has been a critical error on your website.
Is this what you are looking for? If there is sensitive info in the above log, can you please delete the message after reading it?
Regards,
Arjun