mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 11:48:49 +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
|
@ -46,7 +46,7 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
|||
class ApiTokenAuthenticator implements AuthenticatorInterface
|
||||
{
|
||||
public function __construct(
|
||||
#[Autowire(service: 'security.access_token_extractor.header')]
|
||||
#[Autowire(service: 'security.access_token_extractor.main')]
|
||||
private readonly AccessTokenExtractorInterface $accessTokenExtractor,
|
||||
private readonly TranslatorInterface $translator,
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue