You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to set up an emulated developer environment was answered here: #586
When I set up an emulated LDAP environment based on this all authentication get bypassed, in the sense that any password is accepted. I asked about this in #586 but don't feel I got an answer I could understand, so I repeat the question here in a new thread.
In the AuthServiceProvider I have set up a boot method like this:
So the questions is basically how can I set this up to not bypass authentication?
I am guessing that the issue is with Container::getDefaultConnection()->actingAs($user);, this is what makes the bypass possible?
I also notice in the log that $validated is set to 1, which, in my opinion, it should not have been set to since I entered a random password?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How to set up an emulated developer environment was answered here: #586
When I set up an emulated LDAP environment based on this all authentication get bypassed, in the sense that any password is accepted. I asked about this in #586 but don't feel I got an answer I could understand, so I repeat the question here in a new thread.
In the AuthServiceProvider I have set up a boot method like this:
I am using a seeder which creates my user in the emulated LDAP, sqlite:
So the questions is basically how can I set this up to not bypass authentication?
I am guessing that the issue is with
Container::getDefaultConnection()->actingAs($user);
, this is what makes the bypass possible?I also notice in the log that
$validated
is set to1
, which, in my opinion, it should not have been set to since I entered a random password?Beta Was this translation helpful? Give feedback.
All reactions