Skip to content

Conversation

@tangowithfoxtrot
Copy link

There's probably a better way to do this, but ntfy allows us to use curl's basic auth to authenticate with an access token. This means that sometimes, an empty username is acceptable.

we must use an empty username and the token as the password: https://docs.ntfy.sh/publish/#access-tokens
@themactep
Copy link
Owner

i like the idea, but maybe we should make the token a separate entity? then we could have both, use token if it is set, or fall back to regular login/password authentication if it is not or invalid (i expect token could be revoked while the credentials are still valid).

@themactep
Copy link
Owner

Token auth added to the latest rewrite. Please test and see if it works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants