Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using NTFY with access tokens #1668

Open
Steltek opened this issue Aug 14, 2024 · 0 comments
Open

Allow using NTFY with access tokens #1668

Steltek opened this issue Aug 14, 2024 · 0 comments
Labels
🎉 feature New feature or request

Comments

@Steltek
Copy link

Steltek commented Aug 14, 2024

Is your feature request related to a problem? Please describe.
NTFY supports authenticating via Basic auth with a username and password, or using access tokens. The latter can be used using an Authorization Bearer <tokenhere> header in the HTTP POST request, or using Basic Auth by simply submitting an empty username and the token as a password.

When entering the access token into the password, the authorisation appears to fail (I'm assuming speedtest-tracker doesn't try to do auth unless the username field is also filled in?).

Describe the solution you'd like
It would be nice if filling in just the password would cause speed-test tracker to submit an empty username and the password to NTFY to allow authenticating with tokens. (Even better if there was a separate field that used the 'bearer' method, but just having the empty username + password functionality would make it work.)

Additional context
NTFY documentation on using Access Tokens: https://docs.ntfy.sh/publish/#access-tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants