cosmonova-rnd/jwt-guard

Guard JWT Authenticator for Symfony

Installs: 755

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/cosmonova-rnd/jwt-guard

1.1.0 2018-05-17 06:56 UTC

This package is not auto-updated.

Last update: 2025-09-28 11:03:34 UTC


README

Installing

  • Install package using composer

composer require cosmonova-rnd/jwt-guard

Configuring

  • Configure environment variables JWT_PUBLIC_KEY and JWT_PASSPHRASE with public key and passphrase

  • Add to your firewall new authenticator

example:

security:
    main:
        anonymous: ~
        guard:
            authenticators:
                - CosmonovaRnD\JWTGuard\Security\JwtAuthenticator

Usage

Use symfony UserInterface to get authenticated user

@ Cosmonova | Research & Development