Download the PHP package zestic/graphql-auth-component without Composer
On this page you can find all versions of the php package zestic/graphql-auth-component. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package graphql-auth-component
Auth Component
A GraphQL authentication component with OAuth2 support, magic link authentication, and JWT tokens.
Setup
Generating OAuth2 Keys
Before using the authentication component, you need to generate the required OAuth2 keys:
This script will generate:
- JWT Private/Public Key Pair: Used for signing and verifying JWT tokens
- Encryption Key: Used for encrypting authorization and refresh codes
The keys will be saved to:
config/jwt/private.key- JWT private key (keep secure!)config/jwt/public.key- JWT public keyconfig/autoload/auth.local.php- Contains only the encryption key
Important: The script will fail if keys already exist to prevent accidental overwriting.
Key Generation Parameters
The script uses configurable OpenSSL parameters for JWT key generation:
-
digestAlg: Hash algorithm (
sha256,sha384,sha512)sha256: Fast, widely supported (default)sha384: More secure, good balancesha512: Most secure, slower
-
privateKeyBits: Key size in bits (
2048,3072,4096)2048: Fast, minimum recommended (default)3072: Good security/performance balance4096: Maximum security, slower
- privateKeyType: Key algorithm (
RSA,DSA,DH,EC)RSA: Most widely supported (default)EC: Elliptic Curve, smaller keys, good performance
Docker Support
For Docker environments, you can override the key paths using environment variables:
Configuration
The component uses the following default configuration structure:
Notifications
Need to create a class that implements SendVerificationEmailInterface and configure it
All versions of graphql-auth-component with dependencies
adriengras/pkce-php Version ^1.0
league/oauth2-server Version ^9.1
matomo/device-detector Version ^6.4
mll-lab/graphql-php-scalars Version ^6.3
nesbot/carbon Version ^3.10
nyholm/psr7 Version ^1.8
psr/event-dispatcher Version ^1.0
psr/log Version ^3.0
ramsey/uuid Version ^4.7
robmorgan/phinx Version ^0.15.4 || ^0.16
symfony/dotenv Version ^6.4 || ^7.0
symfony/yaml Version ^6.4 || ^7.0
webonyx/graphql-php Version ^15.0