mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-19 08:39:34 +00:00
Add INITIAL_ADMIN_API_KEY environment variable support
- Add configuration parameter for initial admin API key - Implement getInitialAdminApiToken() method in AbstractMultiPlatformMigration - Create migration to automatically generate admin API token on initial setup - Add CLAUDE.md to .gitignore for local development documentation
This commit is contained in:
parent
a6be786d5d
commit
c498803859
4 changed files with 105 additions and 0 deletions
|
|
@ -43,6 +43,10 @@ parameters:
|
|||
######################################################################################################################
|
||||
partdb.saml.enabled: '%env(bool:SAML_ENABLED)%' # If this is set to true, SAML authentication is enabled
|
||||
|
||||
######################################################################################################################
|
||||
# API Configuration
|
||||
######################################################################################################################
|
||||
partdb.api.initial_admin_key: '%env(trim:string:INITIAL_ADMIN_API_KEY)%' # Initial admin API key for automated access (env only)
|
||||
|
||||
######################################################################################################################
|
||||
# Miscellaneous
|
||||
|
|
@ -104,3 +108,5 @@ parameters:
|
|||
env(SAML_ROLE_MAPPING): '{}'
|
||||
|
||||
env(DATABASE_EMULATE_NATURAL_SORT): 0
|
||||
|
||||
env(INITIAL_ADMIN_API_KEY): ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue