-
-
Notifications
You must be signed in to change notification settings - Fork 40
Same identity from different namespaces #46
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
Comments
What about to add method |
Yes it can be. But User::refresh() should run automatically when setNamespace() is called. |
Or refactor The same refactor for: private $authenticated = []; Sample of method getIdentity():
|
PavelWeirich
pushed a commit
to MakeArt/security
that referenced
this issue
Jul 2, 2020
dg
pushed a commit
that referenced
this issue
Dec 31, 2020
dg
pushed a commit
that referenced
this issue
Dec 31, 2020
dg
pushed a commit
that referenced
this issue
Dec 31, 2020
dg
pushed a commit
that referenced
this issue
Dec 31, 2020
dg
pushed a commit
that referenced
this issue
Jan 3, 2021
dg
pushed a commit
that referenced
this issue
Jan 5, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In version 3.03 (https://github.com/nette/security/releases/tag/v3.0.3) the identity and authenticated state are cached.
But it makes problem if you want to switch between namespaces.
For example in FrontModule\BasePresenter.php:
public function startup()
{
parent::startup();
}
It always return ID from "admin" namespace.
The text was updated successfully, but these errors were encountered: