[GH-ISSUE #969] Webhook and Authentik usage for sending NTFY notifications with authorization #676

Closed
opened 2026-05-07 00:26:31 +02:00 by BreizhHardware · 3 comments

Originally created by @SinghTaranjeet16 on GitHub (Nov 30, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/969

Hi I need some with using webhooks with Authentik. I am setting up notification on Authentik with generic webhook option and using this command to send the message https://ntfy.sh/mytopic/publish?auth=<TOKEN> but it doesn't work .

Does NTFY webhooks work with Authentik even?

Originally created by @SinghTaranjeet16 on GitHub (Nov 30, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/969 <!-- STOP! This is not the right place to ask for help. Consider asking on Discord/Matrix instead. You'll usually get an answer sooner, and there are more people there to help! - Discord: https://discord.gg/cT7ECsZj9w - Matrix: https://matrix.to/#/#ntfy:matrix.org / https://matrix.to/#/#ntfy-space:matrix.org --> Hi I need some with using webhooks with Authentik. I am setting up notification on Authentik with `generic webhook` option and using this command to send the message `https://ntfy.sh/mytopic/publish?auth=<TOKEN>` but it doesn't work . Does NTFY webhooks work with Authentik even?
Author
Owner

@wunter8 commented on GitHub (Nov 30, 2023):

Is Authentik sending a GET request or a POST request? The .../publish URL expects a GET request.

Also, does it work if you (temporarily) disable auth? If so, it's a problem with your auth query param. The docs describe how to generate it with double base64 encoding

<!-- gh-comment-id:1834581230 --> @wunter8 commented on GitHub (Nov 30, 2023): Is Authentik sending a GET request or a POST request? The `.../publish` URL expects a GET request. Also, does it work if you (temporarily) disable auth? If so, it's a problem with your auth query param. The docs describe how to generate it with double base64 encoding
Author
Owner

@SinghTaranjeet16 commented on GitHub (Nov 30, 2023):

@wunter8
The auth parameter that I am using is indeed double base64 encoded. I have tried to send the /publish command using curl (or straight away typing it in browser )and get the notification on my device.
So doesn't looks like that auth is the issue here.
Secondly, looks like authentik sends a POST request
https://goauthentik.io/docs/events/transports/

<!-- gh-comment-id:1834591389 --> @SinghTaranjeet16 commented on GitHub (Nov 30, 2023): @wunter8 The `auth` parameter that I am using is indeed double base64 encoded. I have tried to send the `/publish ` command using curl (or straight away typing it in browser )and get the notification on my device. So doesn't looks like that auth is the issue here. Secondly, looks like authentik sends a POST request https://goauthentik.io/docs/events/transports/
Author
Owner

@SinghTaranjeet16 commented on GitHub (Nov 30, 2023):

Worked by sending POST command directly to NTFY server topic, without the /publish paramter. So, for Authentik, command should be https://ntfy.sh/topic?auth=<token>

<!-- gh-comment-id:1834614522 --> @SinghTaranjeet16 commented on GitHub (Nov 30, 2023): Worked by sending POST command directly to NTFY server topic, without the `/publish` paramter. So, for Authentik, command should be `https://ntfy.sh/topic?auth=<token>`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#676
No description provided.