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

SASL Auth #24

Open
meskarune opened this issue Mar 22, 2019 · 1 comment
Open

SASL Auth #24

meskarune opened this issue Mar 22, 2019 · 1 comment

Comments

@meskarune
Copy link
Collaborator

Add support for SASL auth to the bot.

Here is the spec: https://ircv3.net/specs/extensions/sasl-3.1.html

Steps to authenticate successfully (and assuming no ircd errors):

  1. Bot sends CAP REQ :sasl
  2. Listen for a CAP ACK :sasl
  3. Send AUTHENTICATE PLAIN if ACK comes back
  4. Wait for an AUTHENTICATE + response
  5. Send AUTHENTICATE <base64 encoded 'username\0username\0password'> SASL PLAIN request
  6. Wait for a 903 :SASL authentication successful response
  7. Send a CAP END message

Each step would need its own error handling and then fallback to nickserve auth or just have users set which auth method to use.

@meskarune
Copy link
Collaborator Author

This feature depends on the bot's ability to respond to events other than privmsg, so I guess it's blocked until the event reaction stuff is reworked.

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