Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dummy commit #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"doctrine/doctrine-fixtures-bundle": "^3.4",
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.15",
"gesdinet/jwt-refresh-token-bundle": "^1.1",
"lexik/jwt-authentication-bundle": "^2.19",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpdoc-parser": "^1.20",
Expand Down
82 changes: 81 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle::class => ['all' => true],
Gesdinet\JWTRefreshTokenBundle\GesdinetJWTRefreshTokenBundle::class => ['all' => true],
];
2 changes: 2 additions & 0 deletions config/packages/gesdinet_jwt_refresh_token.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gesdinet_jwt_refresh_token:
refresh_token_class: App\Entity\RefreshToken
6 changes: 6 additions & 0 deletions config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ security:
check_path: /api/login_check
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure

refresh:
pattern: ^/api/token/refresh
stateless: true

api:
pattern: ^/api
stateless: true
Expand All @@ -45,6 +50,7 @@ security:
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
- { path: ^/api/token/refresh, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/api/login_check, roles: PUBLIC_ACCESS }
- { path: ^/api, roles: IS_AUTHENTICATED_FULLY }

Expand Down
3 changes: 3 additions & 0 deletions config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ controllers:

api_login_check:
path: /api/login_check
gesdinet_jwt_refresh_token:
path: /api/token/refresh
controller: gesdinet.jwtrefreshtoken::refresh
2 changes: 2 additions & 0 deletions config/routes/gesdinet_jwt_refresh_token.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gesdinet_jwt_refresh_token:
path: /api/token/refresh
14 changes: 14 additions & 0 deletions src/Entity/RefreshToken.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken as BaseRefreshToken;

/**
* @ORM\Entity
* @ORM\Table("refresh_tokens")
*/
class RefreshToken extends BaseRefreshToken
{
}
14 changes: 14 additions & 0 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@
"./migrations/.gitignore"
]
},
"gesdinet/jwt-refresh-token-bundle": {
"version": "1.1",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "main",
"version": "1.0",
"ref": "13fb2b58ec6204211815eb6f4c69e4918e5af617"
},
"files": [
"./config/packages/gesdinet_jwt_refresh_token.yaml",
"./config/routes/gesdinet_jwt_refresh_token.yaml",
"./src/Entity/RefreshToken.php"
]
},
"jms/serializer-bundle": {
"version": "5.2",
"recipe": {
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/ClientControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testIndexClients()

public function testGetAllClients()
{
// $this->markTestSkipped('The test to get all clients has been skipped.');
// $this->markTestSkipped('The test to get all clients has been skipped');

$client = static::createClient();

Expand Down