mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Allow to authenticate using Authorization: Token header, which the KiCAD API uses
This commit is contained in:
parent
feca20ef77
commit
6b0f0d31b9
3 changed files with 32 additions and 1 deletions
|
@ -141,6 +141,19 @@ services:
|
|||
$saml_role_mapping: '%env(json:SAML_ROLE_MAPPING)%'
|
||||
$update_group_on_login: '%env(bool:SAML_UPDATE_GROUP_ON_LOGIN)%'
|
||||
|
||||
|
||||
security.access_token_extractor.header.token:
|
||||
class: Symfony\Component\Security\Http\AccessToken\HeaderAccessTokenExtractor
|
||||
arguments:
|
||||
$tokenType: 'Token'
|
||||
|
||||
security.access_token_extractor.main:
|
||||
class: Symfony\Component\Security\Http\AccessToken\ChainAccessTokenExtractor
|
||||
arguments:
|
||||
$accessTokenExtractors:
|
||||
- '@security.access_token_extractor.header'
|
||||
- '@security.access_token_extractor.header.token'
|
||||
|
||||
####################################################################################################################
|
||||
# Cache
|
||||
####################################################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue