-
Notifications
You must be signed in to change notification settings - Fork 39
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
Associated roles table not returned #74
Comments
I see you have added |
I also try that, I told on my message. |
Not clear enough :) All you said was |
Yes, |
HybridAuth does take the finder into account. |
This my new code:
And this my finder in UsersTable.php
|
You can step through the code and check whether the finder you set is being used at the line i linked. |
That block executed, when a new user try to login with
|
Okay, I see the problem. Will make a fix. |
I have made a new release with the fix. |
Thanks. It is working now. |
I am using ADmad/CakePHP-HybridAuth with dereuromark/cakephp-tinyauth with multi role facility. I wrote following code in my
AppController.php
:When I try to login using
form
it returns associatedroles
, but when try to login usingHybridAuth
not returned theroles
. FYI, authentication and authorization works for both case.I am using CakePHP 3.3.5. I also try using
contain
, which have been deprecated as of 3.1, but noroles
return forHybridAuth
. I also try my custom finderfindAuth
forHybridAuth
, no change.FYI, when I save new user using
\Cake\Event\EventManager::instance()->on('HybridAuth.newUser', [$this, 'createUser']);
, my associatedroles
saved successfully.How can I retrieve
roles
usingHybridAuth
?The text was updated successfully, but these errors were encountered: