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

Access Tokens for BaiBot #3524

Open
gitayam opened this issue Sep 13, 2024 · 1 comment
Open

Access Tokens for BaiBot #3524

gitayam opened this issue Sep 13, 2024 · 1 comment

Comments

@gitayam
Copy link

gitayam commented Sep 13, 2024

Access Token instead of password is vital to homeservers without local accounts.

I did try this config just in case it was mistakenly not included in documentation.

Solution would allow configuration

matrix_bot_baibot_config_access_token: 'access_token_here'
@gitayam
Copy link
Author

gitayam commented Sep 14, 2024

While providing the ability for access token is still desirable, @spantaleev presented this solution:

https://matrix.to/#/!cNSQwPqhHKkIZdBnvt:devture.com/$JDy5ZbM7oZagR6aNA5sumN0l65c6cEPzO6RSO8fqf64?via=devture.com&via=matrix.org&via=beeper.com

You should not log in manually as the bot and set up security key. Just create the local account with some passwords and give that password to the bot - it will log in by itself and prepare its own encryption keys + Secure Storage recovery.

If you initialize the keys via Element, then the bot starts its own new session.. and may or may not be able to recover the Secure Storage recovery session you created via Element.

When using the playbook, you don't even need to prepare the bot's account manually.. Just set a password in the Ansible variable and re-run the playbook - everything will happen automatically.

The only thing you need is to keep matrix_synapse_password_config_localdb_enabled: true (this is the default value anyway.. unless you've changed it, you're good to go!)

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

1 participant