Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Token - Only if getAccount call #1027

Open
jesusrv26 opened this issue Jun 8, 2018 · 0 comments
Open

Authentication Token - Only if getAccount call #1027

jesusrv26 opened this issue Jun 8, 2018 · 0 comments

Comments

@jesusrv26
Copy link

jesusrv26 commented Jun 8, 2018

Hi!

I´m using 7.x-1.8 version because the server php version is 5.3.3.
I tried to create a plugin with token authentication and i detected that only check resource access if some call to getAccount method.

Per example, I add an 'access callback' to check user_access, then token work perfectly because I need call getAccount, but if I not check any permission (i only require authenticated user), the resource it´s accesible although the acces_token is not sended in the request

It´s a bug or i have incorrectly configured the plugin?

$plugin = array( 'label' => t('Empresa'), 'resource' => 'empresa', 'name' => 'empresa__1_0', 'description' => '', 'class' => 'Empresa__1_0', 'authentication_types' => array( 'token', ), 'authentication_optional' => FALSE, 'major_version' => 1, 'minor_version' => 0, );

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant