Search by

lumoauth / symfony-bundle

lumoauth

LumoAuth for Symfony: configuration, an autowired LumoAuth client, and an access-token handler for the security component.

Package info

github.com/LumoAuth/symfony-bundle

Homepage

Type:symfony-bundle

pkg:composer/lumoauth/symfony-bundle

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-10-08 17:25 UTC

This package is not auto-updated.

Last update: 2026-10-08 23:51:43 UTC


README

composer require lumoauth/symfony-bundle
# config/packages/lumoauth.yaml
lumoauth:
    url: '%env(LUMOAUTH_URL)%'
    org_id: '%env(LUMOAUTH_ORG_ID)%'
    api_key: '%env(LUMOAUTH_API_KEY)%'

LumoAuth\LumoAuth is now autowirable:

public function __construct(private LumoAuth $lumo) {}

if (!$this->lumo->permissions->check('document.edit', userId: $user->getUserIdentifier())) {
    throw $this->createAccessDeniedException();
}

Authenticate API requests with LumoAuth bearer tokens through the security component's access_token authenticator; the badge carries the userinfo claims so your user provider needs no second call:

security:
    firewalls:
        api:
            pattern: ^/api
            stateless: true
            access_token:
                token_handler: LumoAuth\Symfony\Security\LumoAuthAccessTokenHandler