-
Notifications
You must be signed in to change notification settings - Fork 80
fix ircv3/ircv3-ideas#73 #490
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
Conversation
Add `account-required` cap value to `draft/account-registration` as per discussion here: ircv3/ircv3-ideas#73
One last thought: it would be a bit nicer to have this not tied to |
Wouldn't it make more sense as value on the |
That would work, but the |
mechanisms are in |
This is actually covered by the existing semantics, I think: if you advertise |
That's a fair point.
Hm, right. It still feels a bit weird to advertise |
From IRC discussion, using the SASL cap value for this violates a MUST of the current ratified SASL 3.2 specification:
since
It's a little weird. Here's how I'm thinking about it: the SASL spec covers, narrowly, how to tunnel SASL authentication inside the IRC C2S protocol. This spec covers policy issues related to accounts (whether they can be registered, what is required to register them, whether they're required to connect, etc.). |
@jwheare, do you have any preferences here? |
I feel like this shouldn't be tied to either the SASL or draft/account-registration capabilities. It's not tied to the AUTHENTICATE, REGISTER or VERIFY flows. It might be followed up by a REGISTER flow but that's not mandatory. I'm not sure I understand where the issue is with just using the FAIL ACCOUNT_REQUIRED error code. Catering to a use case where a client has decided to only pre connect for a list of CAPs to cache and then disconnect seems odd to me. Surely such clients could cache the presence of the FAIL code too? |
@jwheare They don't get the FAIL code until they have sent NICK+USER+CAP END. |
@jwheare My client displays a connection UI with the following fields: "server", "nickname", "password (optional)". What I'd like to do is peek at the server caps once the "server" field is filled, and:
because it's confusing for users to see "password (optional)" when connecting to a server where the password is mandatory. |
If the consensus is that this really really needs to be in the capabilities list, then a separate informational CAP ala STS is probably the best option imo. I'm still not sure if I'm fully on board for the necessity for this, but if we have multi stakeholder demand I'm not going to block it. |
@slingamn, would you be fine with that? |
I have no objection, but I think I'll leave it to someone else to draft :-) |
Alternative to ircv3#490. Closes: ircv3/ircv3-ideas#73
I'm also in a similar boat, would an appropriate numeric or standard reply give you the same information pretty quickly during your registration attempt that having an additional capability is not needed? For example:
|
The goal here is to figure out whether authentication is required before connection registration. User enters hostname to connect to, client performs a |
@emersion In my example above, the client would receive the information that registration is requored alongside the CAP LS output. The client has that informtion about the same time, doesn't this suffice for your use-case? |
I don't know which nickname/username/realname the user wants to pick at that point. I can't send |
I've posted some screenshots at #492 (comment). |
Alternative to ircv3#490. Closes: ircv3/ircv3-ideas#73
Add
account-required
cap value todraft/account-registration
as perdiscussion here:
ircv3/ircv3-ideas#73