Symfony
A Symfony API that accepts LumoAuth access tokens on a firewall and checks permissions in a controller.
StarterPlanned
This example is planned. Not built yet. This page is the specification for the example.
What you get
- The bundle and its
lumoauthconfiguration. - A firewall with
LumoAuthAccessTokenHandleras the token handler. - A controller that asks
$lumo->permissions->check().
Create it
composer require lumoauth/symfony-bundle
Settings
| Variable | Value |
|---|---|
LUMOAUTH_URL | https://app.lumoauth.dev, or https://eu.app.lumoauth.dev for the EU region. |
LUMOAUTH_ORG_ID | Your organization, for example acme-corp. |
LUMOAUTH_API_KEY | An API key for the permission checks. |
Next steps
- Protect your API: Protect routes in each framework.