From e4359fd067f822dee8da852afd4b517aeccef03d Mon Sep 17 00:00:00 2001 From: 121593 <5079173-121593@users.noreply.gitlab.com> Date: Fri, 24 May 2024 15:20:08 +0200 Subject: [PATCH] doc(#45): Mention JWT sub claim matters --- doc/03 - Configuration.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/03 - Configuration.md b/doc/03 - Configuration.md index 73a906d..e6fbf70 100644 --- a/doc/03 - Configuration.md +++ b/doc/03 - Configuration.md @@ -7,10 +7,16 @@ # config/packages/bentools_webpush.yaml (SF4) bentools_webpush: settings: + # subject: public_key: 'your_public_key' private_key: 'your_private_key' ``` +The subject is optional, with a fallback being `router.request_context.host`. +You may need to define it explicitly if you are working in a CLI context. + +Note that Apple requires the subject to be an URL or a mailto URL. + #### Update your router: ```yaml # app/config/routing.yml (SF3)