mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: allow unsecure authentication cookies in dev
This commit is contained in:
@@ -32,6 +32,8 @@ services:
|
||||
- '../src/DependencyInjection/'
|
||||
- '../src/Entity/'
|
||||
- '../src/Kernel.php'
|
||||
bind:
|
||||
$appEnv: '%kernel.environment%'
|
||||
|
||||
# add more service definitions when explicit configuration is needed
|
||||
# please note that last definitions always *replace* previous ones
|
||||
|
||||
@@ -21,6 +21,7 @@ class JWTAuthenticator implements AuthenticationSuccessHandlerInterface
|
||||
public function __construct(
|
||||
protected JWTTokenManagerInterface $jwtManager,
|
||||
protected EventDispatcherInterface $dispatcher,
|
||||
private string $appEnv,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -46,7 +47,7 @@ class JWTAuthenticator implements AuthenticationSuccessHandlerInterface
|
||||
time() + 604800, // expiration
|
||||
'/',
|
||||
null,
|
||||
true,
|
||||
'prod' === $this->appEnv,
|
||||
true,
|
||||
false,
|
||||
'strict'
|
||||
|
||||
Reference in New Issue
Block a user