From ccd82a714eb74795155373a18f45731080375643 Mon Sep 17 00:00:00 2001 From: 121593 <44259105+121593@users.noreply.github.com> Date: Fri, 24 May 2024 17:58:44 +0200 Subject: [PATCH] doc(#45): Mention JWT sub claim matters (#51) Co-authored-by: 121593 <5079173-121593@users.noreply.gitlab.com> --- 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)