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

Support token-based authentication alongside password-based auth #11

Open
alexgleason opened this issue Apr 24, 2017 · 1 comment
Open

Comments

@alexgleason
Copy link

The access token should be retrieved beforehand rather than saving the password for the bot.

@xurizaemon
Copy link
Collaborator

xurizaemon commented Nov 8, 2020

I support this provided we preserve support for the existing auth method also.

Access tokens in Matrix may be configured to have a limited lifetime (eg 7 days), so there's a use case for bots being authenticated via password at startup, and using the generated access token to remain connected for the length of that session. Users can then refresh the token by restarting the bot, which regenerates a new token using the password. Happy to consider a PR that adds token-based auth while preserving password-based auth.

@xurizaemon xurizaemon changed the title Should take the bot's access token, not password Support token-based authentication alongside password-based auth Aug 1, 2021
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

No branches or pull requests

2 participants