Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evaneos/silex-jwt-provider
https://github.com/evaneos/silex-jwt-provider
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/evaneos/silex-jwt-provider
- Owner: Evaneos
- Created: 2016-06-14T08:33:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T08:17:45.000Z (about 3 years ago)
- Last Synced: 2024-11-13T18:46:59.395Z (about 2 months ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 1
- Watchers: 17
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Silex JWT Provider
Silex provider for JWT.
## :warning: Deprecation notice
Silex has reached its end of life in June 2018 [[ref](https://symfony.com/blog/the-end-of-silex)].
We will only maintain this package for internal use only. Contributions are no longer accepted.
You are encouraged to use Symfony 4+ and alternatives like [lexik/LexikJWTAuthenticationBundle](https://github.com/lexik/LexikJWTAuthenticationBundle) or a [custom authenticator](https://symfony.com/doc/current/security/authenticator_manager.html).
## Usage
```php
register(new SecurityServiceProvider(), [
'security.firewalls' => [
'all' => [
'stateless' => true,
'pattern' => '^.*$',
'jwt' => [
'secret_key' => 'secret',
'allowed_algorithms' => ['HS256'],
'retrieval_strategy' => 'chain',
],
],
],
]);
$app->register(new SecurityJWTServiceProvider());
```