-
Notifications
You must be signed in to change notification settings - Fork 82
extensions/sasl-3.1: Fix when to send 904 #408
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
Draft
RyanSquared
wants to merge
1
commit into
ircv3:master
Choose a base branch
from
RyanSquared:fix-sasl-send-804
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -157,6 +157,33 @@ an additional capability. | |
| S: :jaguar.test 001 jilles :Welcome to the jillestest Internet Relay Chat Network jilles | ||
| (usual welcome messages) | ||
|
|
||
| If the client requests a capability that is not supported, the server should | ||
| send both a 908 and a 904 message, allowing the client to reattempt | ||
| authentication with a different method. | ||
|
|
||
| C: CAP LS | ||
| C: NICK ryan | ||
| C: user ryan * * :RyanSquared | ||
| S: NOTICE AUTH :*** Processing connection to irc.test.hashbang.sh | ||
| S: NOTICE AUTH :*** Looking up your hostname... | ||
| S: NOTICE AUTH :*** Checking Ident | ||
| S: NOTICE AUTH :*** No Ident response | ||
| S: NOTICE AUTH :*** Found your hostname | ||
| S: :irc.test.hashbang.sh CAP * LS :multi-prefix sasl | ||
| C: CAP REQ :multi-prefix sasl | ||
| S: :irc.test.hashbang.sh CAP ryan ACK :multi-prefix sasl | ||
| C: AUTHENTICATE SCRAM-SHA-1 | ||
| S: :irc.test.hashbang.sh 908 ryan EXTERNAL,PLAIN :are available SASL mechanisms | ||
| S: :irc.test.hashbang.sh 904 ryan :SASL authentication failed | ||
| C: AUTHENTICATE PLAIN | ||
| S: AUTHENTICATE + | ||
| C: AUTHENTICATE cnlhbnJ5YW5leGFtcGxlCg== | ||
| S: :irc.test.hashbang.sh 900 ryan [email protected] lordryan :You are now logged in as lordryan | ||
| S: :irc.test.hashbang.sh 903 ryan :SASL authentication successful | ||
| C: CAP END | ||
| S: :irc.test.hashbang.sh 001 ryan :Welcome to the #! Testing Internet Relay Chat Network ryan | ||
| (usual welcome messages) | ||
|
|
||
| ## Numerics used by this extension | ||
|
|
||
| `900` aka `RPL_LOGGEDIN` is sent when the user's account name is set (whether by SASL or otherwise). | ||
|
|
@@ -175,7 +202,7 @@ an additional capability. | |
|
|
||
| :server 903 <nick> :SASL authentication successful | ||
|
|
||
| `904` aka `ERR_SASLFAIL` is sent when the SASL authentication fails because of invalid credentials or other errors not explicitly mentioned by other numerics. | ||
| `904` aka `ERR_SASLFAIL` is sent when the SASL authentication fails because of invalid credentials or other errors, even if they're additionally sent by other numerics, and must be sent after all additional numerics. | ||
|
|
||
| :server 904 <nick> :SASL authentication failed | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.