Support

Home Forums Event Espresso Premium Authentication Issue with api – Missing permissions are: ee_read_registrations

Authentication Issue with api – Missing permissions are: ee_read_registrations

Posted: January 18, 2017 at 12:36 pm

Viewing 5 reply threads


Alan Coyne

January 18, 2017 at 12:36 pm

Hi,

I’m getting an error using API – {“code”:”rest_user_cannot_read”,”message”:”Sorry, you cannot read this registration. Missing permissions are: ee_read_registrations,ee_read_others_registrations”,”data”:{“status”:403}}

I’m submitting priority support ticket for this issue.

Thanks

Alan


Josh

  • Support Staff

January 18, 2017 at 12:56 pm

Hi Alan,

Your server doesn’t automatically allow passing the Authorization headers. So to fix this, the .htaccess file located in the /v2/ directory of your server needs an edit.

Line 41 read like this:
RewriteRule ^index\.php$ - [L]

it now reads as:

RewriteRule ^index\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

If the above gets changed back at any time in the future, you’ll need to make that edit to the .htaccess file again.


Alan Coyne

January 18, 2017 at 1:03 pm

Hi Josh

Thanks for the quick reply. We tested again and we are still experiencing the same issue.

{“code”:”rest_user_cannot_read”,”message”:”Sorry, you cannot read this registration. Missing permissions are: ee_read_registrations,ee_read_others_registrations”,”data”:{“status”:403}}

Rgds

Alan


Josh

  • Support Staff

January 18, 2017 at 1:23 pm

Hi Alan,

I’m not experiencing the same issue when I test the /registrations endpoint using the Postman app on your site:

postman response

Are you sending along the username and password using Basic Auth?


Alan Coyne

January 19, 2017 at 12:19 pm

Hi Josh,

Sorry for delay….

Postman is working with basic authentication using the username/password. But it is not working with the oauth2 authentication. I’ll email a screenshot for the same to support@ee. In the project , I am using the https://github.com/adoy/PHP-OAuth2 library.

Thanks

alan


Josh

  • Support Staff

January 19, 2017 at 1:42 pm

Hi Alan,

Event Espresso doesn’t actually support oAuth authentication yet.

Viewing 5 reply threads

The support post ‘Authentication Issue with api – Missing permissions are: ee_read_registrations’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso