Download the PHP package fabricekabongo/auth0-api-authentication-bundle without Composer
On this page you can find all versions of the php package fabricekabongo/auth0-api-authentication-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fabricekabongo/auth0-api-authentication-bundle
More information about fabricekabongo/auth0-api-authentication-bundle
Files in fabricekabongo/auth0-api-authentication-bundle
Package auth0-api-authentication-bundle
Short Description Integrate with Auth0 to bring API authentication to Symfony
License MIT
Informations about the package auth0-api-authentication-bundle
Installation
Badges:
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Then, set the authenticator and provider to these values on app/config/security.yml
:
See Auth0 APIs
Step 3: write functional Test for your API
Create a functional test and extend the FabriceKabongo\Auth0\APIAuthenticationBundle\Test\AuthenticatedWebTestCase
In your test cases create a client and pass it to the setUpClient
methods with the role you want the user to have
Step 4: Help me make this better and simpler. Please :)
Todo: Write unit test (how will I mock the JWS verifier) Todo: Create a new branch for other versions of Symfony (if works differently) Todo: Introduce awesome new features.
I love this project and will continue to work on it. Please do the same.
All versions of auth0-api-authentication-bundle with dependencies
symfony/security Version ^2.7
symfony/http-kernel Version ^2.7
symfony/framework-bundle Version *