feat: oauth2 login via myep

This commit is contained in:
Björn Fromme
2026-08-12 08:14:13 +02:00
parent 078ef8b9a6
commit 898a7c7505
12 changed files with 384 additions and 2 deletions
+1
View File
@@ -20,6 +20,7 @@ security:
lazy: true
provider: bpn_user_provider
custom_authenticators:
- App\Security\MyEpAuthenticator
- App\Security\BpnAuthenticator
user_checker: App\Security\UserChecker
switch_user:
+10
View File
@@ -230,3 +230,13 @@ services:
$defaults:
from: '%default_email_from%'
to: '%default_email_to%'
App\Security\OAuth2\MyEpClient:
arguments:
$options:
myep_oauth2_client_id: '%env(MYEP_OAUTH2_CLIENT_ID)%'
myep_oauth2_client_secret: '%env(MYEP_OAUTH2_CLIENT_SECRET)%'
myep_oauth2_url_authorize: '%env(MYEP_OAUTH2_URL_AUTHORIZE)%'
myep_oauth2_url_access_token: '%env(MYEP_OAUTH2_URL_ACCESS_TOKEN)%'
myep_oauth2_url_resource_owner_details: '%env(MYEP_OAUTH2_URL_RESOURCE_OWNER_DETAILS)%'
myep_oauth2_scopes: '%env(csv:MYEP_OAUTH2_SCOPES)%'