- Added support for authenticating via access tokens

- update symfony to 6.4.*
- some other minor stuff
This commit is contained in:
2024-02-12 23:37:24 -07:00
parent 4a1c6e1a72
commit 7c45f64a73
21 changed files with 5022 additions and 8217 deletions
+9
View File
@@ -20,6 +20,7 @@ services:
$globalFactory: '@limiter.ip_login'
# localFactory is the limiter for username+IP
$localFactory: '@limiter.username_ip_login'
$secret: '%env(APP_SECRET)%'
security:
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
@@ -36,6 +37,14 @@ security:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
api:
pattern: ^/api/
provider: app_user_provider
access_denied_handler: App\Security\AccessTokenDeniedHandler
access_token:
token_handler: App\Security\AccessTokenHandler
failure_handler: App\Security\AccessTokenDeniedHandler
main:
lazy: true
provider: app_user_provider
+4
View File
@@ -0,0 +1,4 @@
framework:
uid:
default_uuid_version: 7
time_based_uuid_version: 7
+6 -1
View File
@@ -26,4 +26,9 @@ services:
tags:
- { name: doctrine.event_subscriber, connection: default }
calls:
- [ setAnnotationReader, [ '@annotation_reader' ] ]
- [ setAnnotationReader, [ '@annotation_reader' ] ]
Symfony\Component\Uid\Command\GenerateUlidCommand: ~
Symfony\Component\Uid\Command\GenerateUuidCommand: ~
Symfony\Component\Uid\Command\InspectUlidCommand: ~
Symfony\Component\Uid\Command\InspectUuidCommand: ~