vouchedfor/token-bundle

Provides support for the use of an external token encoder/decoder

Installs: 4 248

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2022-03-05 08:36 UTC

This package is not auto-updated.

Last update: 2024-05-11 18:44:07 UTC


README

Provides support for the use of an external token encoder/decoder

Installation

First, install it with composer:

composer require vouchedfor/token-bundle:dev-master

Then, add the following in your AppKernel bundles (assuming 'new DataDog\AuditBundle\DataDogAuditBundle(),' has been added previously).

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        ...
        new VouchedFor\TokenBundle\VouchedForTokenBundle(),
        ...
    );
    ...
}

Add the url of the endpoint responsible for encoding/decoding tokens to config.yml. For example:

// app/config/config.yml
vouched_for_token:
    url: 'http://token-local.vouchedfor.co.uk/v2/token/'

License

The Token Bundle is free to use and is licensed under the MIT license