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/DependencyInjection/'
|
||||||
- '../src/Entity/'
|
- '../src/Entity/'
|
||||||
- '../src/Kernel.php'
|
- '../src/Kernel.php'
|
||||||
|
bind:
|
||||||
|
$appEnv: '%kernel.environment%'
|
||||||
|
|
||||||
# add more service definitions when explicit configuration is needed
|
# add more service definitions when explicit configuration is needed
|
||||||
# please note that last definitions always *replace* previous ones
|
# please note that last definitions always *replace* previous ones
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class JWTAuthenticator implements AuthenticationSuccessHandlerInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
protected JWTTokenManagerInterface $jwtManager,
|
protected JWTTokenManagerInterface $jwtManager,
|
||||||
protected EventDispatcherInterface $dispatcher,
|
protected EventDispatcherInterface $dispatcher,
|
||||||
|
private string $appEnv,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,7 +47,7 @@ class JWTAuthenticator implements AuthenticationSuccessHandlerInterface
|
|||||||
time() + 604800, // expiration
|
time() + 604800, // expiration
|
||||||
'/',
|
'/',
|
||||||
null,
|
null,
|
||||||
true,
|
'prod' === $this->appEnv,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
'strict'
|
'strict'
|
||||||
|
|||||||
Reference in New Issue
Block a user