paysera/lib-bearer-authentication-bundle

There is no license information available for the latest version (1.0.2) of this package.

Bearer Authentication Bundle

1.0.2 2021-01-18 07:14 UTC

This package is auto-updated.

Last update: 2021-10-18 08:38:15 UTC


README

Install

Add bundle to AppKernel.php:

$bundles = [
    ...
    new Paysera\BearerAuthenticationBundle\PayseraBearerAuthenticationBundle(),
];

Samples

Sample security.yml

security:
    providers:
        bearer_user:
            id: paysera_bearer_authentication.security_user.bearer_user_provider
    
    firewalls:
        bearer_secured:
            patter: ^/api/
            stateless: true
            bearer: true

All bearer handlers must be tagged with:

<tag name="paysera_bearer_authentication.handler" />

and implement \Paysera\BearerAuthenticationBundle\Security\User\HandlerInterface