From c23a931c145cf3be8b1d77067925d721e0ddbfc8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 25 Mar 2022 09:47:13 +0100 Subject: [PATCH 1/2] account-registration: add the informational account-required cap Alternative to https://github.com/ircv3/ircv3-specifications/pull/490. Closes: https://github.com/ircv3/ircv3-ideas/issues/73 --- extensions/account-registration.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/extensions/account-registration.md b/extensions/account-registration.md index 3dff9f297..b38ba7e93 100644 --- a/extensions/account-registration.md +++ b/extensions/account-registration.md @@ -46,7 +46,7 @@ consensus. This specification uses [standard replies][] framework. -### Capability +### Capabilities This specification adds the `draft/account-registration` capability, whose presence signifies that the server accepts the `REGISTER` command. @@ -71,6 +71,18 @@ The only defined capability keys so far are: * `custom-account-name` - if present, the account name can be different from the user's current nickname +This specification also defines the informational `draft/account-required` +capability. If present, it indicates that the connection to the server cannot +be completed unless the clients authenticates, typically via SASL. Note, the +absence of this capability does not indicate that connection registration can +be completed without authentication; it may be disallowed due to specific +properties of the connection (e.g. an untrustworthy IP address), which will be +indicated instead by `FAIL * ACCOUNT_REQUIRED`. If the capability value +`draft/account-registration=before-connect` is advertised, clients should +respond to both of these conditions by suggesting that the user register an +account. Clients MUST NOT request `draft/account-required`, servers MUST reject +any `CAP REQ` command including this capability. + ### Commands REGISTER { | "*"} From 2db311df52e739b9db07fac214454be2062ef232 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 27 Apr 2022 19:08:27 +0200 Subject: [PATCH 2/2] Improve typography --- extensions/account-registration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/account-registration.md b/extensions/account-registration.md index b38ba7e93..bd15642db 100644 --- a/extensions/account-registration.md +++ b/extensions/account-registration.md @@ -80,7 +80,7 @@ properties of the connection (e.g. an untrustworthy IP address), which will be indicated instead by `FAIL * ACCOUNT_REQUIRED`. If the capability value `draft/account-registration=before-connect` is advertised, clients should respond to both of these conditions by suggesting that the user register an -account. Clients MUST NOT request `draft/account-required`, servers MUST reject +account. Clients MUST NOT request `draft/account-required`; servers MUST reject any `CAP REQ` command including this capability. ### Commands