uxf / oauth2
2.1.1
2022-11-02 09:16 UTC
Requires
- php: ^8.0
- doctrine/doctrine-bundle: ~2.0
- league/oauth2-server: ~8.0
- nyholm/psr7: ^1.2
- symfony/security-http: ^5.4 || ^6.0
- uxf/core: ~1.0
Requires (Dev)
- doctrine/doctrine-fixtures-bundle: ~3.0
- phpstan/phpstan: ~1.0
- phpstan/phpstan-doctrine: ^1.0
- phpunit/phpunit: ~9.0
- slevomat/coding-standard: ^7.0
- squizlabs/php_codesniffer: ^3.5
- symfony/phpunit-bridge: ^6.0
- thecodingmachine/phpstan-safe-rule: ^1.0
README
Minimal config
uxf_oauth2:
public_key_path: '%kernel.project_dir%/config/oauth2/public.key'
private_key_path: '%kernel.project_dir%/config/oauth2/private.key'
encryption_key: '<secured-key>'
default_client:
secret: '<your-client-secret>'
Full config
uxf_oauth2:
authorization_header: 'Authorization' # default
public_key_path: '%kernel.project_dir%/config/oauth2/public.key' # required
private_key_path: '%kernel.project_dir%/config/oauth2/private.key' # required
encryption_key: '<secured-key>' # required
auth_code_lifetime: 'PT10M' # default
access_token_lifetime: 'P1D' # default
refresh_token_lifetime: 'P1M' # default
default_scope: '' # default
cookie_name: 'Auth-Token' # default
cookie_secured: ~ # default
cookie_http_only: true # default
redirect_login_path: '/login' # default
redirect_approve_path: '/approve' # default
clients_whitelist: [] # default (fill client identifiers)
default_client:
id: 'uxf' # default
secret: '<your-client-secret>' # required
scope: 'uxf_scope' # default