Skip to content

Commit

Permalink
Merge pull request #27 from Gijsbertbas/clear-cookie
Browse files Browse the repository at this point in the history
Clear cookie with samesite=none
  • Loading branch information
Gijs committed Jul 5, 2021
2 parents 5bec271 + 4e15e6a commit 73c368d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ build:
environment:
php:
version: 7.4
compile_options: '--with-config-file-path=/home/scrutinizer/.phpenv/versions/7.4.3/etc --with-config-file-scan-dir=/home/scrutinizer/.phpenv/versions/7.4.3/etc/conf.d --prefix=/home/scrutinizer/.phpenv/versions/7.4.3 --libexecdir=/home/scrutinizer/.phpenv/versions/7.4.3/libexec --enable-intl --with-openssl --without-pear --with-gd --enable-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --enable-exif --with-libzip --with-zlib --with-zlib-dir=/usr --with-sodium --with-pdo-sqlite --enable-soap --enable-xmlreader --with-xsl --enable-ftp --with-tidy --with-xmlrpc --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-shmop --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-pcntl --with-readline --enable-mbstring --with-curl --with-pgsql --with-pdo-pgsql --with-gettext --enable-sockets --with-bz2 --enable-bcmath --enable-calendar --with-libdir=lib --enable-fpm --enable-maintainer-zts --with-gmp --with-kerberos --with-imap --with-imap-ssl --with-apxs2=/usr/bin/apxs --with-ldap --with-pear=/home/scrutinizer/.phpenv/versions/7.4.3/pear'

nodes:
phpunit:
Expand Down
2 changes: 1 addition & 1 deletion src/Security/Guard/JWTTokenAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
$response = parent::onAuthenticationFailure($request, $authException); // TODO: Change the autogenerated stub

if ($authException instanceof InvalidTokenException || $authException instanceof ExpiredTokenException) {
$response->headers->clearCookie('BEARER');
$response->headers->clearCookie('BEARER', '/', null, true, true, 'none');
}

return $response;
Expand Down

0 comments on commit 73c368d

Please sign in to comment.