CLI Command User security #54876
Unanswered
leevigraham
asked this question in
Q&A
Replies: 1 comment
-
Seems as simple as $token = new UsernamePasswordToken($user, 'main', $user->getRoles());
$this->tokenStorage->setToken($token); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there anyway to "login" a user during a CLI command?
I know there's no request object so logging in programatically doesn't seem to work.
I wonder if there's more low level functions I can use to add a
User
to the current security "session".Beta Was this translation helpful? Give feedback.
All reactions