I lowkey forgot to commit

This commit is contained in:
2025-11-01 00:28:29 +00:00
parent f9e747633f
commit c0528310c1
54 changed files with 2154 additions and 7 deletions

BIN
config/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -4,14 +4,37 @@ security:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
providers:
users_in_memory: { memory: null }
app_user_provider:
entity:
class: App\Entity\User
property: email
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
lazy: true
provider: users_in_memory
provider: app_user_provider
form_login:
login_path: album_search
check_path: app_login
enable_csrf: true
default_target_path: album_search
failure_path: album_search
username_parameter: _username
password_parameter: _password
csrf_parameter: _csrf_token
remember_me:
secret: '%env(APP_SECRET)%'
lifetime: 1209600 # 14 days
path: '/'
secure: auto
samesite: lax
remember_me_parameter: _remember_me
logout:
path: app_logout
target: album_search
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall

View File

@@ -18,3 +18,8 @@ services:
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
App\Service\SpotifyClient:
arguments:
$clientId: '%env(SPOTIFY_CLIENT_ID)%'
$clientSecret: '%env(SPOTIFY_CLIENT_SECRET)%'