Skip to content

Commit

Permalink
Support JWT API authentication.
Browse files Browse the repository at this point in the history
- JWT authentication allow to use packagist api with external users' providers, i.e.LDAP, SSO etc.
  • Loading branch information
vtsykun committed Jan 15, 2023
1 parent f0cd5fc commit 7436ac7
Show file tree
Hide file tree
Showing 16 changed files with 814 additions and 143 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"doctrine/doctrine-bundle": "^2.2",
"doctrine/orm": "^2.7",
"ezyang/htmlpurifier": "^4.16",
"firebase/php-jwt": "^6.3",
"knplabs/knp-menu-bundle": "^3.2",
"laminas/laminas-feed": "^2.20",
"nelmio/cors-bundle": "^2.2",
Expand Down
64 changes: 63 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ services:
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
bind:
$redis: '@snc_redis.default'
$jwtTokenConfig: '%packeton_jws_config%'
$jwtSignAlgorithm: '%packeton_jws_algo%'
'Symfony\Component\Security\Core\User\UserCheckerInterface': '@Packeton\Security\UserChecker'

Packeton\:
Expand Down Expand Up @@ -85,9 +87,6 @@ services:
arguments:
$config: '%packeton_archive_opts%'

Packeton\Security\Api\ApiTokenAuthenticator:
abstract: true

Packeton\DBAL\OpensslCrypter:
public: true
arguments:
Expand Down
123 changes: 0 additions & 123 deletions src/Command/CreateUserCommand.php

This file was deleted.

Loading

0 comments on commit 7436ac7

Please sign in to comment.