feat: implement OAuth 2.0 login flow

This commit is contained in:
Maël Gangloff
2024-07-22 02:17:42 +02:00
parent c48f37696c
commit 9e8523fa53
12 changed files with 850 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ security:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
login:
api_login:
pattern: ^/api/login
stateless: true
json_login:
@@ -26,6 +27,10 @@ security:
stateless: true
jwt: ~
main:
custom_authenticators:
- App\Security\OAuthAuthenticator
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall