justingreerbbi / wordpress-oauth-server

This plugin is a full OAuth 2.0 authorization server/provider for WordPress. The goal of WP OAuth Server is to provide an easy to use authorization method that 3rd party platforms can use to securely authorize users from your WordPress site.
https://wp-oauth.com
98 stars 46 forks source link

Undefined class constant 'RESPONSE_TYPE_ID_TOKEN_TOKEN' #31

Closed logankoester closed 9 years ago

logankoester commented 9 years ago

At the start of the login flow on 3.0.5 I'm getting a 500 response this in the logs:

Undefined class constant 'RESPONSE_TYPE_ID_TOKEN_TOKEN' in www/wp-content/plugins/oauth2-provider/library/OAuth2/OpenID/Controller/AuthorizeController.php on line 82" while reading response header from upstream

Relevant line: https://github.com/justingreerbbi/wordpress-oauth-server/blob/master/library/OAuth2/OpenID/Controller/AuthorizeController.php#L82

logankoester commented 9 years ago

This problem was resolved after downgrading to 3.0.4.

justingreerbbi commented 9 years ago

Thanks for the update. I am going to be taking a look here this weekend. Can you provide you server OS, and PHP version as well as the action that you are doing when this error is thrown?