Skip to content

Instantly share code, notes, and snippets.

@vincentchalamon
Last active August 11, 2023 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentchalamon/9c963182f2625716f3d1c7ea4d69e616 to your computer and use it in GitHub Desktop.
Save vincentchalamon/9c963182f2625716f3d1c7ea4d69e616 to your computer and use it in GitHub Desktop.
Symfony Security configuration using AccessTokenAuthenticator
# api/config/packages/security.yaml
security:
firewalls:
main:
pattern: ^/
access_token:
token_handler:
oidc:
# Algorithm used to sign the JWS
algorithm: 'ES256'
# A JSON-encoded JWK
key: '{"kty":"...","k":"..."}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment