From 02b911dab5e1f17ecfce508206920708e3b28fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Patroc=C3=ADnio?= Date: Wed, 14 May 2025 11:10:06 +0100 Subject: [PATCH] Update authenticators.rst The secretKey in loadAuthenticator should be the public key (jwt.pem). --- docs/en/authenticators.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/authenticators.rst b/docs/en/authenticators.rst index dd4f5d76..14cf234d 100644 --- a/docs/en/authenticators.rst +++ b/docs/en/authenticators.rst @@ -141,7 +141,7 @@ Add the following to your ``Application`` class:: // ... $service->loadIdentifier('Authentication.JwtSubject'); $service->loadAuthenticator('Authentication.Jwt', [ - 'secretKey' => file_get_contents(CONFIG . '/jwt.key'), + 'secretKey' => file_get_contents(CONFIG . '/jwt.pem'), 'algorithm' => 'RS256', 'returnPayload' => false ]);