<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude"
     category="exp"
     docName="draft-chen-emu-teap-notification-action-00"
     ipr="trust200902"
     submissionType="IETF"
     tocInclude="true"
     sortRefs="true"
     symRefs="true"
     xml:lang="en"
     version="3">

  <front>
    <title abbrev="TEAP Protected User Notification">Protected User Notification Extension for Tunnel Extensible Authentication Protocol (TEAP)</title>
    <seriesInfo name="Internet-Draft" value="draft-chen-emu-teap-notification-action-00"/>
    <author fullname="Junjun Chen" initials="J." surname="Chen">
      <organization>Peking University</organization>
      <address>
        <postal>
          <city>Beijing</city>
          <country>China</country>
        </postal>
        <email>chenjunjun@pku.edu.cn</email>
      </address>
    </author>
    <author fullname="Zhongnan Fu" initials="Z." surname="Fu">
      <organization>Peking University</organization>
      <address>
        <postal>
          <city>Beijing</city>
          <country>China</country>
        </postal>
        <email>ccfzn@pku.edu.cn</email>
      </address>
    </author>
    <author fullname="Hao Ma" initials="H." surname="Ma">
      <organization>Peking University</organization>
      <address>
        <postal>
          <city>Beijing</city>
          <country>China</country>
        </postal>
        <email>mah@pku.edu.cn</email>
      </address>
    </author>
    <author fullname="Guilin Wang" initials="G." surname="Wang">
      <organization>Huawei</organization>
      <address>
        <email>wang.guilin@huawei.com</email>
      </address>
    </author>
    <date year="2026" month="November" day="23"/>
    <area>Security</area>
    <workgroup>Network Working Group</workgroup>
    <keyword>802.1X</keyword>
    <keyword>EAP</keyword>
    <keyword>TEAP</keyword>
    <keyword>Authentication Failure</keyword>
    <keyword>User Notification</keyword>

    <abstract>
      <t>
        When IEEE 802.1X network access is denied or restricted, clients usually show only a generic message such as "Authentication Failed", even when the authentication server knows the specific reason. Existing mechanisms either do not reach the client (RADIUS Reply-Message), are not protected (EAP Notification), or are not designed for presentation to users (the TEAP Error TLV and inner method error messages).
      </t>
      <t>
        This document defines an optional extension to Tunnel Extensible Authentication Protocol (TEAP) Version 1 (RFC 9930) that allows the EAP server to send a notification to the user inside the TEAP TLS tunnel. The peer advertises the reason codes it supports and the user's preferred languages in a Notification Capabilities TLV. The server sends a reason code, a recommended action, and optional text and remediation URI in a User-Notification TLV. The peer can acknowledge it with a Notification-Acknowledgement TLV. The extension only provides information and does not change authentication results, authorization decisions, or key derivation.
      </t>
    </abstract>
  </front>

  <middle>
    <section anchor="intro" numbered="true" toc="default">
      <name>Introduction</name>
      <t>
        IEEE 802.1X <xref target="IEEE802.1X"/> is widely used for access control in enterprise and campus networks <xref target="RFC3580"/>. The client (EAP peer) authenticates to a backend EAP server through an authenticator such as an Ethernet switch or a wireless access point. Between the authenticator and the server, EAP is carried in RADIUS <xref target="RFC2865"/> <xref target="RFC3579"/>. When access is denied or restricted, most clients show only a generic message such as "Authentication Failed". The server, however, often knows the actual reason: the device has not been registered, the password has expired, the attempt is outside the permitted access hours, the device has been placed in a remediation network, or a backend service is unavailable.
      </t>
      <t>
        Several existing mechanisms carry error information, but none of them is suitable for delivering it to the user:
      </t>
      <ul>
        <li>
          RADIUS Reply-Message <xref target="RFC2865"/> is exchanged between the AAA server and the Network Access Server (NAS). There is no standard way for the NAS to pass its contents on to the peer.
        </li>
        <li>
          EAP Notification (<xref target="RFC3748"/>, Type 2) reaches the peer, but it is sent in cleartext outside any tunnel. An attacker on a shared link can forge it, for example to insert a phishing URL, so clients cannot trust it.
        </li>
        <li>
          Inner method error messages, such as the MS-CHAPv2 failure string <xref target="RFC2759"/>, are protected by the tunnel but differ from method to method. They describe credential errors only and cannot express authorization or admission states such as an unregistered device or quarantine.
        </li>
        <li>
          The TEAP Error TLV (<xref target="RFC9930" section="4.2.6" sectionFormat="comma"/>) is protected and defines codes for some account conditions, but it is processed by the TEAP state machine and is not designed for presentation to users. <xref target="rel-error-tlv"/> compares it with this extension.
        </li>
        <li>
          The TEAP Request-Action TLV (<xref target="RFC9930" section="4.2.9" sectionFormat="comma"/>) asks the other party to perform further protocol actions. It does not carry information for the user.
        </li>
      </ul>
      <t>
        TEAP Version 1 <xref target="RFC9930"/> already provides a suitable channel: the TLVs exchanged in Phase 2 are carried inside a TLS tunnel, and the peer keeps track of whether the server has been authenticated. This document defines three optional TLVs that use this channel:
      </t>
      <ul>
        <li>Notification Capabilities TLV: the peer lists the reason codes it can present and the languages the user prefers.</li>
        <li>User-Notification TLV: the server sends a reason code, a recommended action, and optionally text, a remediation URI, and a helpdesk correlation token.</li>
        <li>Notification-Acknowledgement TLV: the peer reports whether it accepted the notification.</li>
      </ul>
      <t>
        These TLVs are informational. They do not affect authentication results, authorization decisions, or key derivation (<xref target="decoupling"/>).
      </t>

      <section anchor="experiment" numbered="true" toc="default">
        <name>Experimental Status</name>
        <t>
          This document is Experimental. Its purpose is to gain implementation and deployment experience before a Standards Track version is considered. Implementers and operators are encouraged to report their experience to the EMU Working Group, in particular on the following questions:
        </t>
        <ul>
          <li>whether the extension can be deployed without disrupting TEAP sessions with peers or servers that do not implement it;</li>
          <li>whether the initial reason codes and recommended actions cover common enterprise and campus deployments, and whether the Reason Code registry stays consistent with the TEAP Error-Code registry in practice (<xref target="rel-error-tlv"/>);</li>
          <li>whether servers can choose suitable text using the language preferences advertised by peers;</li>
          <li>whether showing server-provided reasons and remediation links reduces helpdesk load without creating new phishing or information disclosure risks.</li>
        </ul>
      </section>
    </section>

    <section anchor="conventions" numbered="true" toc="default">
      <name>Conventions and Terminology</name>
      <t>
        The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.
      </t>
      <dl newline="true">
        <dt>Peer:</dt>
        <dd>
          The EAP peer, usually the IEEE 802.1X supplicant in the client operating system. It receives notifications and presents them to the user.
        </dd>
        <dt>Server:</dt>
        <dd>
          The TEAP server. It authenticates the peer, makes the authorization decision, and sends notifications. In this document, the NAS is never referred to as the server.
        </dd>
        <dt>Tier 1, Tier 2, Tier 3:</dt>
        <dd>
          The three levels of encapsulation in an IEEE 802.1X / TEAP exchange (<xref target="tiers"/>). Tier 1 (access transport) is EAPOL and RADIUS, terminated at the NAS. Tier 2 (EAP transport) is the unencrypted EAP conversation between the peer and the server. Tier 3 (TLS tunnel) carries the TEAP Phase 2 TLVs inside the TLS tunnel.
        </dd>
        <dt>Authenticated Server:</dt>
        <dd>
          A server that the peer considers authenticated according to <xref target="RFC9930" section="3.11" sectionFormat="comma"/>, for example by validating its certificate as described in <xref target="RFC9930" section="3.4" sectionFormat="comma"/>.
        </dd>
        <dt>Protected Termination:</dt>
        <dd>
          The Crypto-Binding TLV and Result TLV exchange at the end of Phase 2 (<xref target="RFC9930" section="3.6.6" sectionFormat="comma"/>), followed by the EAP-Success or EAP-Failure.
        </dd>
        <dt>Restricted Access:</dt>
        <dd>
          The peer's credentials have been accepted, but network policy limits the peer to an isolated network, for example one that only provides access to an onboarding portal or a remediation server.
        </dd>
      </dl>
    </section>

    <section anchor="overview" numbered="true" toc="default">
      <name>Protocol Overview</name>

      <section anchor="tiers" numbered="true" toc="default">
        <name>Three-Tier Encapsulation Model</name>
        <t>
          An IEEE 802.1X / TEAP exchange involves three levels of encapsulation, summarized in <xref target="tbl-tiers"/>. The word "tier" is used to avoid confusion with the layers of the OSI reference model.
        </t>
        <table anchor="tbl-tiers">
          <name>Three-Tier Encapsulation Model</name>
          <thead>
            <tr>
              <th align="left">Tier</th>
              <th align="left">Endpoints</th>
              <th align="left">Content</th>
              <th align="left">NAS Role</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">1: Access transport (EAPOL + RADIUS)</td>
              <td align="left">Peer &lt;--&gt; NAS, NAS &lt;--&gt; AAA server (hop-by-hop)</td>
              <td align="left">EAP packets; RADIUS attributes such as VLAN, ACL, and Reply-Message</td>
              <td align="left">Terminates this tier and enforces network policy</td>
            </tr>
            <tr>
              <td align="left">2: EAP transport (EAP-TEAP)</td>
              <td align="left">Peer &lt;--&gt; TEAP server (end-to-end)</td>
              <td align="left">EAP method negotiation, TLS handshake, EAP-Success / EAP-Failure; also EAP Notification, which is not protected</td>
              <td align="left">Sees EAP headers; relays packets as a pass-through authenticator</td>
            </tr>
            <tr>
              <td align="left">3: TLS tunnel (TEAP Phase 2 TLVs)</td>
              <td align="left">Peer &lt;--&gt; TEAP server (end-to-end, encrypted)</td>
              <td align="left">Inner method payloads, Crypto-Binding, Result, and the TLVs defined in this document</td>
              <td align="left">Sees only TLS ciphertext</td>
            </tr>
          </tbody>
        </table>
        <t>
          The NAS is a pass-through authenticator (<xref target="RFC3748" section="2.3" sectionFormat="comma"/>). It relays EAP packets and forwards the server's EAP-Success or EAP-Failure after it receives a RADIUS Access-Accept or Access-Reject, but it does not evaluate credentials. Tiers 2 and 3 have the same endpoints, but only Tier 3 is protected.
        </t>
        <t>
          The TLVs defined in this document are Tier 3 TLVs and are not tied to any inner method. The server can therefore send a notification after the inner methods have finished, or when no inner method is used. In Tiers 1 and 2, the notifications appear only as TLS ciphertext, so a NAS or RADIUS proxy cannot read or modify them.
        </t>
      </section>

      <section anchor="flow" numbered="true" toc="default">
        <name>Interaction Flow</name>
        <t>
          The following figure shows a typical notification exchange in Tier 3 and the corresponding events in Tiers 2 and 1:
        </t>
        <artwork align="left" type="ascii-art">
<![CDATA[
 [Tier 3: TLS Tunnel -- protected, end-to-end]

  Peer                                             TEAP Server
   |                                                     |
   |<== TLS handshake (Phase 1), server authenticated ==>|
   |                                                     |
   |--- (1) Notification Capabilities TLV -------------->|
   |        (with other TLVs, if any)                    |
   |                                                     |
   |<-- Phase 2 exchanges (inner methods), if any ------>|
   |                                                     |
   |<-- (2) User-Notification TLV -----------------------|
   |        + Result TLV (+ Crypto-Binding TLV)          |
   |                                                     |
   |--- (3) Notification-Acknowledgement TLV ----------->|
   |        (only if Ack-Required is set)                |
   |        + Result TLV (+ Crypto-Binding TLV)          |

 =============================================================

 [Tiers 2 and 1: EAP Transport and Access Transport]

  Peer              NAS (Switch / AP)               AAA Server
   |                        |                            |
   |<=== EAPOL ============>|<=== RADIUS/EAP ===========>|
   |   (Tier 3 ciphertext relayed transparently by NAS)  |
   |                        |                            |
   |                        |<-- Access-Accept/Reject ---|
   |                        |    (VLAN / ACL policy)     |
   |<-- EAP-Success/Failure-|                            |
   |                        |                            |
   |   (NAS enforces authorization, isolation, or drop)  |
]]>
        </artwork>
        <t>
          In steps (2) and (3), the Crypto-Binding TLV is included whenever <xref target="RFC9930"/> requires it, that is, in a successful protected termination. The following rules apply:
        </t>
        <ol>
          <li>
            The TLVs defined in this document <bcp14>MUST</bcp14> only be sent inside the TLS tunnel established in Phase 1, as TLS application data following the sender's TLS Finished message.
          </li>
          <li>
            The server <bcp14>MUST NOT</bcp14> send a User-Notification TLV unless it has received a Notification Capabilities TLV from the peer in the same session. The server <bcp14>MUST NOT</bcp14> send more than one User-Notification TLV in a session.
          </li>
          <li>
            <xref target="RFC9930" section="3.2" sectionFormat="comma"/> allows the server to send its first Phase 2 payload together with its TLS Finished message. A server that supports this extension and may send a notification <bcp14>SHOULD NOT</bcp14> include its final Result TLV in that payload. It <bcp14>SHOULD</bcp14> instead wait for the peer's first Phase 2 message, which normally carries the Notification Capabilities TLV if the peer supports this extension (<xref target="capabilities"/>). With TLS 1.3 <xref target="RFC9846"/> and with abbreviated TLS 1.2 handshakes, this adds no round trip, since the server has to wait for the peer's Finished message anyway. With a full TLS 1.2 handshake, it adds at most one round trip.
          </li>
          <li>
            The server <bcp14>SHOULD</bcp14> send the User-Notification TLV in the same message as its final Result TLV. The notification exchange then becomes part of the protected termination and adds no round trips. The server <bcp14>MUST NOT</bcp14> send a User-Notification TLV after that message.
          </li>
          <li>
            If the server sends the User-Notification TLV in an earlier message, that message <bcp14>MUST</bcp14> also contain at least one TLV defined in <xref target="RFC9930"/> that requires a response, such as an EAP-Payload TLV. The peer's response to that message is then defined by <xref target="RFC9930"/>.
          </li>
          <li>
            EAP is a lock-step protocol, so every request from the server gets exactly one response from the peer. The acknowledgement is carried in that response (<xref target="ack"/>), and no separate acknowledgement timer is needed.
          </li>
        </ol>
      </section>

      <section anchor="decoupling" numbered="true" toc="default">
        <name>Separation from the Authentication Outcome</name>
        <t>
          The following rules keep notifications separate from the authentication outcome:
        </t>
        <ul>
          <li>
            The contents of a User-Notification TLV are only used for presentation to the user and for local diagnostics. They <bcp14>MUST NOT</bcp14> be used as input to credential validation, authorization decisions, key derivation, generation of RADIUS attributes, or network admission enforcement.
          </li>
          <li>
            If a notification is missing, discarded, malformed, or not acknowledged, this <bcp14>MUST NOT</bcp14> turn a successful outcome (a successful Result TLV or EAP-Success) into a failure, and it <bcp14>MUST NOT</bcp14> turn a failed outcome into a success. In particular, the server <bcp14>MUST NOT</bcp14> fail an authentication because an acknowledgement is missing or reports Rejected, Unsupported-Version, or Malformed.
          </li>
          <li>
            The peer <bcp14>MUST NOT</bcp14> conclude that network access has been granted because it received a notification. Access is determined only by the final EAP result and the policy enforced by the access network.
          </li>
        </ul>
      </section>

      <section anchor="scope" numbered="true" toc="default">
        <name>Scope</name>
        <t>
          This extension applies only to TEAP Version 1 <xref target="RFC9930"/>. It does not apply to PEAP <xref target="MS-PEAP"/>, EAP-TTLS <xref target="RFC5281"/>, EAP-FAST <xref target="RFC4851"/>, or EAP-TLS <xref target="RFC5216"/>. It is intended for three situations:
        </t>
        <ol>
          <li>
            Access denied. Either credential verification fails, or the credentials are accepted but policy denies access. The session ends with a failure Result TLV and EAP-Failure. If credential verification failed, only a few reason codes can be used (<xref target="enumeration"/>).
          </li>
          <li>
            Restricted Access. Authentication succeeds and the session ends with EAP-Success, but policy places the peer in a quarantine or remediation network, for example because the device has not been registered or has failed a posture check.
          </li>
          <li>
            Information only. The access decision is not affected, and the server provides a notice or onboarding guidance.
          </li>
        </ol>
      </section>

      <section anchor="relationship" numbered="true" toc="default">
        <name>Relationship to Existing Mechanisms</name>
        <section anchor="rel-error-tlv" numbered="true" toc="default">
          <name>TEAP Error TLV</name>
          <t>
            The Error TLV (<xref target="RFC9930" section="4.2.6" sectionFormat="comma"/>) and the User-Notification TLV are both carried in the TLS tunnel, but they have different purposes. For the following reasons, this document defines a separate registry for Reason Codes (<xref target="reason-registry"/>) instead of reusing the "TEAP Error TLV (value 5) Error Codes" registry:
          </t>
          <ul>
            <li>The Error TLV is a mandatory TLV that is processed by the TEAP state machine, and a fatal Error TLV ends the conversation. The User-Notification TLV is addressed to the user interface and does not affect the state machine (<xref target="decoupling"/>). Registering states such as "Device-Not-Registered" as Error-Codes would give them a meaning for the state machine.</li>
            <li>Many Error-Codes describe protocol or cryptographic conditions, such as 2001 (Tunnel Compromise Error) or 1018 (Challenge algorithm mismatch), that mean nothing to users. Every Reason Code is meant to be shown to users and serves as a key into localized message catalogs. Several admission states covered here (device registration, access hours, posture remediation, and concurrent session limits) have no Error-Code at all.</li>
            <li>The Error TLV carries only a 32-bit code. The User-Notification TLV also carries a severity, a recommended action, retry guidance, text, a remediation URI, and a correlation token.</li>
            <li>The Error TLV has no capability indication, so the server cannot know whether the peer will show a given code to the user. Reason Codes are advertised individually in the Notification Capabilities TLV and are restricted before the peer is authenticated (<xref target="enumeration"/>). A small code space used only for user-facing reasons keeps the capability list and these restrictions simple.</li>
          </ul>
          <t>
            This extension does not change how the Error TLV is processed. A server <bcp14>MAY</bcp14> send both an Error TLV and a User-Notification TLV in the same session. In that case, the Reason-Code <bcp14>SHOULD</bcp14> be consistent with the Error-Code as shown in <xref target="tbl-error-map"/>. The table also serves to keep the two registries aligned; <xref target="reason-registry"/> asks the designated experts to check new Reason Codes against the Error-Code registry. <xref target="RFC9930"/> already recommends against using Error-Code 1031 (User account credentials incorrect), for the same reason as the restrictions in <xref target="enumeration"/>.
          </t>
          <table anchor="tbl-error-map">
            <name>Reason Codes and Corresponding TEAP Error-Codes</name>
            <thead>
              <tr>
                <th align="left">Reason Code</th>
                <th align="left">Error-Code(s) in RFC 9930</th>
              </tr>
            </thead>
            <tbody>
              <tr><td align="left">0 Generic</td><td align="left">(none)</td></tr>
              <tr><td align="left">1 Authentication-Failed</td><td align="left">1003 Unspecified authentication failure</td></tr>
              <tr><td align="left">2 Authorization-Denied</td><td align="left">1004 Unspecified authorization failure</td></tr>
              <tr><td align="left">3 Account-Expired</td><td align="left">1006 User account expired</td></tr>
              <tr><td align="left">4 Account-Locked</td><td align="left">1007, 1008 User account locked</td></tr>
              <tr><td align="left">5 Device-Not-Registered</td><td align="left">(none)</td></tr>
              <tr><td align="left">6 Access-Time-Restricted</td><td align="left">(none)</td></tr>
              <tr><td align="left">7 Infrastructure-Unavailable</td><td align="left">1002, 1009 Authentication infrastructure problem / unavailable</td></tr>
              <tr><td align="left">8 Remediation-Required</td><td align="left">(none)</td></tr>
              <tr><td align="left">9 Concurrent-Session-Limit</td><td align="left">(none)</td></tr>
              <tr><td align="left">10 Credential-Change-Required</td><td align="left">6 User account credentials change required</td></tr>
            </tbody>
          </table>
        </section>
        <section anchor="rel-captive" numbered="true" toc="default">
          <name>Captive Portal Signaling</name>
          <t>
            Captive portal identification <xref target="RFC8910"/> and the Captive Portal API <xref target="RFC8908"/> tell a client, after it has joined the network and obtained IP configuration, that it needs to visit a portal. They do not help when access is denied, and they do not say why access is restricted. The User-Notification TLV is sent during authentication, including when access is denied. The two mechanisms can be used together: in the Restricted Access case, the server <bcp14>MAY</bcp14> set the Remediation-URI to the portal URI that the network advertises.
          </t>
        </section>
      </section>
    </section>

    <section anchor="encoding" numbered="true" toc="default">
      <name>General TLV Encoding Rules</name>
      <t>
        The TLVs defined in this document use the TEAP TLV format of <xref target="RFC9930" section="4.2.1" sectionFormat="comma"/>, shown below. Multi-octet integer fields <bcp14>MUST</bcp14> be sent in network byte order. In the figures, bit 0 is the most significant bit.
      </t>
      <artwork align="left" type="ascii-art">
<![CDATA[
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|M|R|         TLV Type          |            Length             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          Value ...                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]>
      </artwork>
      <t>
        All three TLVs are optional. The Mandatory (M) bit <bcp14>MUST</bcp14> be set to 0. The Reserved (R) bit <bcp14>MUST</bcp14> be set to 0 when sending and <bcp14>MUST</bcp14> be ignored when receiving. A receiver that does not recognize the TLV Type ignores the TLV and continues the session (<xref target="RFC9930" section="4.2" sectionFormat="comma"/>).
      </t>
      <t>
        The same section of <xref target="RFC9930"/> says that if all TLVs in a message are optional and none of them is understood by the peer, a Result TLV <bcp14>SHOULD</bcp14> be sent. To avoid triggering this behavior, a TLV defined in this document <bcp14>MUST NOT</bcp14> be the only TLV in a message, with one exception: the peer's first Phase 2 message may contain only the Notification Capabilities TLV. The rule above concerns messages received by the peer; a server that does not understand the TLV continues Phase 2 with its next request, as it does when the peer's first message contains only Identity-Hint TLVs (<xref target="RFC9930" section="4.2.20" sectionFormat="comma"/>). The User-Notification TLV and the Notification-Acknowledgement TLV are always sent together with other TLVs (<xref target="flow"/>).
      </t>
      <t>
        If a receiver recognizes the TLV Type but finds an inconsistent length or a malformed structure, it <bcp14>MUST</bcp14> discard the whole TLV, <bcp14>MUST NOT</bcp14> present any of its content, <bcp14>MUST NOT</bcp14> perform any associated action, and <bcp14>MUST NOT</bcp14> use partially parsed data. A malformed TLV <bcp14>MUST NOT</bcp14> cause the TEAP session to fail.
      </t>
      <t>
        Each TLV starts with a 1-octet Version field. This document defines version 1. A receiver that does not support the Version of a received TLV <bcp14>MUST</bcp14> ignore the TLV. For a User-Notification TLV with Ack-Required set, the peer then reports Unsupported-Version (<xref target="ack"/>). To make this possible, later versions of the User-Notification TLV <bcp14>MUST</bcp14> keep the Version and Flags fields, including the Ack-Required flag, at their current positions. A server <bcp14>MUST NOT</bcp14> send a User-Notification TLV with a Version that the peer did not advertise in its Notification Capabilities TLV. This document does not define how a peer advertises support for more than one version; a future version of this extension is expected to define that.
      </t>
      <t>
        Until IANA assigns values, this document uses TBD1, TBD2, and TBD3 for the TLV Types of the Notification Capabilities, User-Notification, and Notification-Acknowledgement TLVs. In the meantime, experimental deployments <bcp14>MAY</bcp14> carry these TLVs inside Vendor-Specific TLVs (<xref target="RFC9930" section="4.2.8" sectionFormat="comma"/>); interoperability of such deployments is out of scope.
      </t>
    </section>

    <section anchor="capabilities" numbered="true" toc="default">
      <name>Notification Capabilities TLV</name>
      <t>
        The peer sends the Notification Capabilities TLV to tell the server which Reason Codes it can present to the user and which languages the user prefers. The server uses this information to avoid sending codes that the peer cannot display and to choose the language of the Text field.
      </t>
      <t>
        The peer <bcp14>MUST NOT</bcp14> send more than one Notification Capabilities TLV in a session. It <bcp14>SHOULD</bcp14> send the TLV in its first Phase 2 message, together with any other TLVs it sends at that point, such as Identity-Hint TLVs (<xref target="RFC9930" section="3.6" sectionFormat="comma"/>). Where the TLS handshake allows it, as with TLS 1.3 and abbreviated TLS 1.2 handshakes, this can be the message that carries the peer's TLS Finished. If the peer has already received the server's first Phase 2 payload, it includes the TLV in its response. Together with the server behavior in <xref target="flow"/>, this lets the server learn the peer's capabilities before it sends its final Result TLV, even when no inner method is run.
      </t>
      <artwork align="left" type="ascii-art">
<![CDATA[
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    Version    |  Code-Count   |        Reason-Code 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        Reason-Code 2          |              ...              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Lang-Count   |   Tag-Len 1   |  Language-Tag 1 ...           ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Tag-Len 2   |  Language-Tag 2 ...                           ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]>
      </artwork>
      <dl newline="true">
        <dt>Version (1 octet):</dt>
        <dd>See <xref target="encoding"/>.</dd>
        <dt>Code-Count (1 octet):</dt>
        <dd>Number of Reason-Code entries, from 0 to 32.</dd>
        <dt>Reason-Code (2 octets each):</dt>
        <dd>
          Reason Codes (<xref target="reason-registry"/>) that the peer can present. The list <bcp14>MUST</bcp14> be in ascending order and <bcp14>MUST NOT</bcp14> contain duplicates. Code 0 (Generic) is always supported, whether it is listed or not; a Code-Count of 0 means that the peer supports only Code 0.
        </dd>
        <dt>Lang-Count (1 octet):</dt>
        <dd>Number of language entries, from 0 to 4. A value of 0 means that the peer has no preference.</dd>
        <dt>Tag-Len (1 octet) and Language-Tag (Tag-Len octets) in each entry:</dt>
        <dd>
          A language tag in ASCII, 1 to 35 octets long. Each Language-Tag <bcp14>MUST</bcp14> be well-formed according to <xref target="RFC5646"/>. Entries are listed in decreasing order of preference and normally reflect the language settings of the user interface.
        </dd>
      </dl>
      <t>
        The Length <bcp14>MUST</bcp14> equal 3 + (2 * Code-Count) + Lang-Count + (the total length of all Language-Tags), which gives 3 to 211 octets. The receiver <bcp14>MUST</bcp14> treat the TLV as malformed (<xref target="encoding"/>) if the Length does not match, if Code-Count exceeds 32 or Lang-Count exceeds 4, or if any Tag-Len is 0 or greater than 35.
      </t>
      <t>
        Except for Code 0, the server <bcp14>MUST</bcp14> only send a Reason-Code that appears in the peer's list.
      </t>
    </section>

    <section anchor="notification" numbered="true" toc="default">
      <name>User-Notification TLV</name>
      <t>
        The server sends the User-Notification TLV to tell the user why the authentication ended as it did and what to do next. <xref target="flow"/> specifies when it can be sent. The Value consists of an 8-octet fixed part followed by four variable-length fields. The length of the Correlation-ID is given by Corr-Len in the fixed part; each of the other three fields is preceded by its own length field. A length of 0 means that the field is absent.
      </t>
      <artwork align="left" type="ascii-art">
<![CDATA[
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    Version    |     Flags     |          Reason-Code          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Rec-Action   |   Corr-Len    |          Retry-After          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Correlation-ID (Corr-Len octets, 0-32)                       ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Lang-Len    |  Language-Tag (Lang-Len octets, 0-35)         ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Text-Len    |  Text (Text-Len octets, 0-255)                ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            URI-Len            | Remediation-URI (0-512)       ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]>
      </artwork>
      <t>
        The Length is therefore between 12 and 846 octets. The receiver <bcp14>MUST</bcp14> treat the TLV as malformed (<xref target="encoding"/>) if Corr-Len exceeds 32, Lang-Len exceeds 35, URI-Len exceeds 512, exactly one of Text-Len and Lang-Len is zero, or the field lengths do not add up to the Length.
      </t>
      <dl newline="true">
        <dt>Version (1 octet):</dt>
        <dd>See <xref target="encoding"/>.</dd>
        <dt>Flags (1 octet):</dt>
        <dd>
          <t>Severity (mask 0x03): 0 = Info, 1 = Warning, 2 = Error. The value 3 is reserved and <bcp14>MUST</bcp14> be treated as 0. The peer may use the severity to choose an icon or a color.</t>
          <t>Ack-Required (mask 0x04): if set, the server asks for a Notification-Acknowledgement TLV.</t>
          <t>Reserved (mask 0xF8): <bcp14>MUST</bcp14> be set to 0 by the sender and <bcp14>MUST</bcp14> be ignored by the receiver.</t>
        </dd>
        <dt>Reason-Code (2 octets):</dt>
        <dd>
          The reason, from the registry in <xref target="reason-registry"/>. The peer uses it to look up a localized message. Code 0 means that the reason is not classified or not disclosed. If the peer receives a Reason-Code that it did not advertise or does not recognize, it <bcp14>MUST</bcp14> treat it as Code 0.
        </dd>
        <dt>Rec-Action (1 octet):</dt>
        <dd>
          What the user should do next, from the registry in <xref target="action-registry"/>: 0 None, 1 Retry Later, 2 Contact Administrator, 3 Register Device, 4 Change Credentials, 5 Open Remediation Webpage. Unrecognized values <bcp14>MUST</bcp14> be treated as 0. The action is separate from the reason because organizations handle the same cause in different ways, for example through a self-service portal or through the helpdesk. <xref target="retry"/> describes how the peer handles actions 3 to 5.
        </dd>
        <dt>Corr-Len (1 octet) and Correlation-ID (0 to 32 octets):</dt>
        <dd>
          A token that the user can give to the helpdesk so that administrators can find the session in the server logs. It <bcp14>MUST</bcp14> consist of printable ASCII characters (0x21-0x7E). It <bcp14>MUST NOT</bcp14> contain usernames, MAC addresses, IP addresses, certificate serial numbers, or other personally identifiable information. It <bcp14>SHOULD</bcp14> be random enough that it cannot be predicted or used to infer internal session counters.
        </dd>
        <dt>Retry-After (2 octets):</dt>
        <dd>
          Suggested minimum time in seconds before the user retries. A value of 0 means no suggestion. A non-zero value indicates that the condition may be temporary (see <xref target="retry"/>).
        </dd>
        <dt>Lang-Len (1 octet) and Language-Tag (0 to 35 octets):</dt>
        <dd>
          The language of the Text, as a language tag <xref target="RFC5646"/> in ASCII. It <bcp14>MUST</bcp14> be present if Text is present, and <bcp14>MUST</bcp14> be absent otherwise. The server <bcp14>SHOULD</bcp14> choose the language by matching its available texts against the peer's preferred languages in order, for example with the Lookup scheme of <xref target="RFC4647"/>. If nothing matches, or if the peer gave no preference, the server <bcp14>SHOULD</bcp14> send English text tagged "en", following the default language guidance of <xref target="RFC2277"/>.
        </dd>
        <dt>Text-Len (1 octet) and Text (0 to 255 octets):</dt>
        <dd>
          An optional explanation in UTF-8 <xref target="RFC3629"/>. The peer <bcp14>SHOULD</bcp14> prefer the localized message for the Reason-Code from its own catalog, and show the Text only when it has no such message. The peer <bcp14>MUST</bcp14> check that the Text is valid UTF-8, <bcp14>MUST</bcp14> display it only as plain text, and <bcp14>MUST NOT</bcp14> interpret it as markup or commands. The peer <bcp14>SHOULD</bcp14> use the Language-Tag to display the Text correctly, for example to choose the text direction and font.
        </dd>
        <dt>URI-Len (2 octets) and Remediation-URI (0 to 512 octets):</dt>
        <dd>
          A web page where the user can fix the problem. If present, it <bcp14>MUST</bcp14> be an absolute URI <xref target="RFC3986"/> with the "https" scheme <xref target="RFC9110"/>, and <bcp14>MUST NOT</bcp14> contain a userinfo component or a fragment. It <bcp14>MUST NOT</bcp14> contain passwords, session tokens, or other credentials. A peer that receives a URI that breaks these rules <bcp14>MUST</bcp14> ignore the URI, and <bcp14>MAY</bcp14> still process the rest of the notification.
        </dd>
      </dl>

      <section anchor="enumeration" numbered="true" toc="default">
        <name>Restrictions Before Peer Authentication</name>
        <t>
          Codes such as Account-Expired or Account-Locked reveal that an account exists and what state it is in. An attacker who has no valid credentials could use them to discover valid usernames. Until the server has authenticated the peer, either in Phase 1 or through a successful inner method, the server <bcp14>MUST</bcp14> only use the following Reason-Codes:
        </t>
        <ul>
          <li>0 (Generic);</li>
          <li>1 (Authentication-Failed), which says only that authentication failed;</li>
          <li>7 (Infrastructure-Unavailable), which describes the server rather than the account.</li>
        </ul>
        <t>
          In this situation, the Rec-Action, Text, and Remediation-URI <bcp14>MUST NOT</bcp14> reveal anything about the account either. For example, the server cannot recommend Change Credentials (4), because that would indicate that the account exists and that its credentials need to be changed.
        </t>
      </section>
    </section>

    <section anchor="ack" numbered="true" toc="default">
      <name>Notification-Acknowledgement TLV</name>
      <t>
        The peer sends a Notification-Acknowledgement TLV only when it receives a User-Notification TLV with Ack-Required set. The peer <bcp14>MUST</bcp14> include the acknowledgement in its response to the message that carried the notification. If the notification came with the server's final Result TLV, the acknowledgement goes with the peer's Result TLV.
      </t>
      <t>
        The acknowledgement only says how the peer's protocol implementation handled the notification. It does not mean that the notification was displayed, or that the user read it or followed the advice. Because a session carries at most one notification (<xref target="flow"/>), the TLV needs no identifier. Its Length is 2:
      </t>
      <artwork align="left" type="ascii-art">
<![CDATA[
 0                   1
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    Version    |    Status     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]>
      </artwork>
      <dl newline="true">
        <dt>Version (1 octet):</dt>
        <dd>See <xref target="encoding"/>.</dd>
        <dt>Status (1 octet):</dt>
        <dd>
          <t>One of the following values, registered in <xref target="ack-registry"/>:</t>
          <ul>
            <li>0 (Parsed): the notification was valid and was accepted for display according to local policy.</li>
            <li>1 (Rejected): the notification was valid but was not displayed because of local policy or display limits.</li>
            <li>2 (Unsupported-Version): the Version of the notification is not supported.</li>
            <li>3 (Malformed): the notification failed syntax or length checks.</li>
          </ul>
          <t>Unassigned values <bcp14>MUST NOT</bcp14> be sent. A server that receives an unknown value <bcp14>MUST</bcp14> treat it as an acknowledgement with unspecified status.</t>
        </dd>
      </dl>
      <t>
        If the response contains no acknowledgement, the server continues as it otherwise would. If the server has sent a fatal Error TLV, it discards the peer's last message (<xref target="RFC9930" section="3.9.3" sectionFormat="comma"/>), so an acknowledgement in that message is not processed. The acknowledgement never changes the outcome (<xref target="decoupling"/>).
      </t>
    </section>

    <section anchor="retry" numbered="true" toc="default">
      <name>Retry Behavior and Recommended Actions</name>
      <t>
        Retry-After is a hint for the user interface. It does not allow the peer to reconnect in a loop. The peer <bcp14>MUST NOT</bcp14> keep retrying with the same credentials without user involvement only because it received a non-zero Retry-After. An implementation that retries automatically <bcp14>MUST NOT</bcp14> make more than one automatic attempt with the same credentials for a given notification, and that attempt <bcp14>MUST NOT</bcp14> be made before Retry-After seconds have passed. Any further automatic attempts in later sessions <bcp14>MUST</bcp14> use exponential backoff with a maximum interval of 86400 seconds.
      </t>
      <t>
        Actions 3 (Register Device), 4 (Change Credentials), and 5 (Open Remediation Webpage) take the user out of the authentication process into another workflow. The peer <bcp14>MUST</bcp14> ask the user for confirmation before it starts any such workflow. Before opening a Remediation-URI, the peer <bcp14>MUST</bcp14> show the URI to the user as part of this confirmation. The peer <bcp14>MUST NOT</bcp14> pass existing passwords, one-time passwords, session tokens, or private keys to the workflow. Re-authentication and credential changes <bcp14>MUST</bcp14> take place only in trusted user interfaces.
      </t>
    </section>

    <section anchor="compatibility" numbered="true" toc="default">
      <name>Backward Compatibility</name>
      <t>
        Implementations that do not support this extension ignore its TLVs, because the M bit is 0, and the rules in <xref target="encoding"/> keep them from being prompted to send a Result TLV. A server sends a notification only to a peer that has advertised support (<xref target="flow"/>). A peer that supports this extension but receives no notification completes the normal protected termination of <xref target="RFC9930"/>. Other EAP methods are not affected.
      </t>
    </section>

    <section anchor="security" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>
        The security considerations of <xref target="RFC9930"/> apply. This section covers additional issues.
      </t>
      <t>
        A peer <bcp14>MUST NOT</bcp14> display a notification or act on a Remediation-URI unless the server is an Authenticated Server (<xref target="conventions"/>). Under <xref target="RFC9930" section="3.11" sectionFormat="comma"/>, the server can be authenticated by certificate validation (<xref target="RFC9930" section="3.4" sectionFormat="comma"/>), by resuming a session in which it was authenticated, or by an inner method that provides mutual authentication with cryptographic binding. If only an inner method authenticates the server, the peer <bcp14>MUST</bcp14> hold any notification until that method has completed, and <bcp14>MUST</bcp14> discard the notification if the method does not complete. In Server Unauthenticated Provisioning Mode (<xref target="RFC9930" section="3.11.3" sectionFormat="comma"/>), the peer <bcp14>MUST NOT</bcp14> display the Text or open the Remediation-URI, even if the inner method later authenticates the server; once the server has been authenticated, the peer can still display its own localized message for the Reason-Code. Peers <bcp14>SHOULD</bcp14> check certificate revocation status where they can, although during authentication the peer usually has no general network access.
      </t>
      <t>
        To prevent account enumeration, <xref target="enumeration"/> limits the codes that can be used before the peer is authenticated. Deployments <bcp14>SHOULD</bcp14> also apply rate limiting and audit logging to repeated failed attempts.
      </t>
      <t>
        Even an authenticated server can be misconfigured or compromised, so the peer <bcp14>MUST</bcp14> treat the Text and the Remediation-URI as untrusted input. <xref target="notification"/> requires the peer to check their format and length and to display the Text only as plain text. In addition, peers <bcp14>SHOULD</bcp14> remove or neutralize control characters and bidirectional formatting characters that could disguise the content. Before opening a Remediation-URI, the peer asks the user for confirmation (<xref target="retry"/>); it <bcp14>SHOULD</bcp14> also only allow destinations that are on an administrator-configured allowlist or in the domain of the authenticated server identity.
      </t>
      <t>
        In the Restricted Access case, the isolation policy on the NAS <bcp14>SHOULD</bcp14> follow the principle of least privilege and allow only essential services, such as DHCP and DNS, and the designated remediation services.
      </t>
      <t>
        The TLS record layer protects against replay: a notification captured in one session cannot be injected into another. Peers <bcp14>MUST</bcp14> associate a notification only with the session in which it was received, and <bcp14>MUST NOT</bcp14> present a stored notification from another session as current.
      </t>
    </section>

    <section anchor="privacy" numbered="true" toc="default">
      <name>Privacy Considerations</name>
      <t>
        Detailed reason codes can reveal internal security policies, schedules, or organizational structure. Servers <bcp14>SHOULD</bcp14> use generic codes when detailed codes are not needed. The TLS tunnel hides notification contents from passive observers.
      </t>
      <t>
        <xref target="notification"/> does not allow personal information in the Correlation-ID or credentials in the Remediation-URI. Operational logs <bcp14>SHOULD</bcp14> remove personal identifiers from diagnostic records. Peer implementations <bcp14>SHOULD</bcp14> let users control how notification history and correlation tokens are kept and displayed.
      </t>
      <t>
        The language list in the Notification Capabilities TLV reveals the user's language settings to the server and can contribute to fingerprinting. Peers <bcp14>SHOULD</bcp14> advertise only the languages configured for the user interface, and <bcp14>SHOULD NOT</bcp14> advertise more languages than needed.
      </t>
    </section>

    <section anchor="iana" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>
        This document requests the following actions in the "Tunnel Extensible Authentication Protocol (TEAP) Parameters" registry group: three new values in an existing registry, and three new registries. For each new registry, the registration policy is Specification Required <xref target="RFC8126"/>; each entry contains a value, a name, and a reference, and the Reason Code and Recommended Action registries also contain a short description. The reference for all initial entries is this document.
      </t>

      <section anchor="tlv-registry" numbered="true" toc="default">
        <name>TEAP TLV Types</name>
        <t>
          IANA is requested to assign three values in the "TEAP TLV Types" registry:
        </t>
        <table anchor="tbl-iana-tlvs">
          <name>New TEAP TLV Types</name>
          <thead>
            <tr>
              <th align="left">Value</th>
              <th align="left">Description</th>
              <th align="left">Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">TBD1</td>
              <td align="left">Notification Capabilities TLV</td>
              <td align="left">This document, <xref target="capabilities"/></td>
            </tr>
            <tr>
              <td align="left">TBD2</td>
              <td align="left">User-Notification TLV</td>
              <td align="left">This document, <xref target="notification"/></td>
            </tr>
            <tr>
              <td align="left">TBD3</td>
              <td align="left">Notification-Acknowledgement TLV</td>
              <td align="left">This document, <xref target="ack"/></td>
            </tr>
          </tbody>
        </table>
      </section>

      <section anchor="reason-registry" numbered="true" toc="default">
        <name>TEAP Notification Reason Codes</name>
        <t>
          IANA is requested to create the "TEAP Notification Reason Codes" registry. Values are 16-bit unsigned integers. Code 0 is permanently assigned to "Generic" and <bcp14>MUST NOT</bcp14> be reassigned. The initial contents are:
        </t>
        <table anchor="tbl-iana-reasons">
          <name>Initial TEAP Notification Reason Codes</name>
          <thead>
            <tr>
              <th align="left">Value</th>
              <th align="left">Name</th>
              <th align="left">Description</th>
            </tr>
          </thead>
          <tbody>
            <tr><td align="left">0</td><td align="left">Generic</td><td align="left">Reason not classified or not disclosed</td></tr>
            <tr><td align="left">1</td><td align="left">Authentication-Failed</td><td align="left">Credentials failed verification</td></tr>
            <tr><td align="left">2</td><td align="left">Authorization-Denied</td><td align="left">Credentials accepted, but access denied by policy</td></tr>
            <tr><td align="left">3</td><td align="left">Account-Expired</td><td align="left">Account has expired</td></tr>
            <tr><td align="left">4</td><td align="left">Account-Locked</td><td align="left">Account is locked</td></tr>
            <tr><td align="left">5</td><td align="left">Device-Not-Registered</td><td align="left">Device must be registered before access is granted</td></tr>
            <tr><td align="left">6</td><td align="left">Access-Time-Restricted</td><td align="left">Outside the permitted access hours</td></tr>
            <tr><td align="left">7</td><td align="left">Infrastructure-Unavailable</td><td align="left">Authentication infrastructure or a backend service is temporarily unavailable</td></tr>
            <tr><td align="left">8</td><td align="left">Remediation-Required</td><td align="left">Device posture must be remediated before full access is granted</td></tr>
            <tr><td align="left">9</td><td align="left">Concurrent-Session-Limit</td><td align="left">Maximum number of concurrent sessions reached</td></tr>
            <tr><td align="left">10</td><td align="left">Credential-Change-Required</td><td align="left">Credentials must be changed (e.g., initial password reset) before access is granted</td></tr>
            <tr><td align="left">11-65535</td><td align="left">Unassigned</td><td align="left"></td></tr>
          </tbody>
        </table>
        <t>
          Guidance for the designated experts: a new Reason Code is appropriate only for a condition that is meaningful to users and suitable for display by clients. The experts <bcp14>SHOULD</bcp14> check whether the condition corresponds to an entry in the "TEAP Error TLV (value 5) Error Codes" registry; if it does, they <bcp14>SHOULD</bcp14> make sure that the descriptions are consistent and that the specification documents the correspondence, as <xref target="tbl-error-map"/> does. The experts <bcp14>SHOULD</bcp14> also check that the specification says whether the new code may be used before the peer is authenticated (<xref target="enumeration"/>). If it does not say so, the code <bcp14>MUST NOT</bcp14> be used before the peer is authenticated.
        </t>
      </section>

      <section anchor="action-registry" numbered="true" toc="default">
        <name>TEAP Notification Recommended Actions</name>
        <t>
          IANA is requested to create the "TEAP Notification Recommended Actions" registry. Values are 8-bit unsigned integers. The initial contents are:
        </t>
        <table anchor="tbl-iana-actions">
          <name>Initial TEAP Notification Recommended Actions</name>
          <thead>
            <tr>
              <th align="left">Value</th>
              <th align="left">Name</th>
              <th align="left">Description</th>
            </tr>
          </thead>
          <tbody>
            <tr><td align="left">0</td><td align="left">None</td><td align="left">No specific action</td></tr>
            <tr><td align="left">1</td><td align="left">Retry Later</td><td align="left">Retry after the time given in Retry-After</td></tr>
            <tr><td align="left">2</td><td align="left">Contact Administrator</td><td align="left">Contact the network administrator or helpdesk</td></tr>
            <tr><td align="left">3</td><td align="left">Register Device</td><td align="left">Register the device (requires user confirmation)</td></tr>
            <tr><td align="left">4</td><td align="left">Change Credentials</td><td align="left">Change credentials in a trusted interface (requires user confirmation)</td></tr>
            <tr><td align="left">5</td><td align="left">Open Remediation Webpage</td><td align="left">Open the Remediation-URI (requires user confirmation)</td></tr>
            <tr><td align="left">6-255</td><td align="left">Unassigned</td><td align="left"></td></tr>
          </tbody>
        </table>
      </section>

      <section anchor="ack-registry" numbered="true" toc="default">
        <name>TEAP Notification Acknowledgement Status</name>
        <t>
          IANA is requested to create the "TEAP Notification Acknowledgement Status" registry. Values are 8-bit unsigned integers. The meaning of the initial values is given in <xref target="ack"/>. The initial contents are:
        </t>
        <table anchor="tbl-iana-ack">
          <name>Initial Acknowledgement Status Values</name>
          <thead>
            <tr>
              <th align="left">Value</th>
              <th align="left">Name</th>
            </tr>
          </thead>
          <tbody>
            <tr><td align="left">0</td><td align="left">Parsed</td></tr>
            <tr><td align="left">1</td><td align="left">Rejected</td></tr>
            <tr><td align="left">2</td><td align="left">Unsupported-Version</td></tr>
            <tr><td align="left">3</td><td align="left">Malformed</td></tr>
            <tr><td align="left">4-255</td><td align="left">Unassigned</td></tr>
          </tbody>
        </table>
      </section>
    </section>
  </middle>

  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC9930" target="https://www.rfc-editor.org/info/rfc9930">
          <front>
            <title>Tunnel Extensible Authentication Protocol (TEAP) Version 1</title>
            <author fullname="A. DeKok" initials="A." surname="DeKok" role="editor"/>
            <date month="February" year="2026"/>
          </front>
          <seriesInfo name="RFC" value="9930"/>
          <seriesInfo name="DOI" value="10.17487/RFC9930"/>
        </reference>
        <reference anchor="RFC3629" target="https://www.rfc-editor.org/info/rfc3629">
          <front>
            <title>UTF-8, a transformation format of ISO 10646</title>
            <author fullname="F. Yergeau" initials="F." surname="Yergeau"/>
            <date month="November" year="2003"/>
          </front>
          <seriesInfo name="STD" value="63"/>
          <seriesInfo name="RFC" value="3629"/>
          <seriesInfo name="DOI" value="10.17487/RFC3629"/>
        </reference>
        <reference anchor="RFC3986" target="https://www.rfc-editor.org/info/rfc3986">
          <front>
            <title>Uniform Resource Identifier (URI): Generic Syntax</title>
            <author fullname="T. Berners-Lee" initials="T." surname="Berners-Lee"/>
            <author fullname="R. Fielding" initials="R." surname="Fielding"/>
            <author fullname="L. Masinter" initials="L." surname="Masinter"/>
            <date month="January" year="2005"/>
          </front>
          <seriesInfo name="STD" value="66"/>
          <seriesInfo name="RFC" value="3986"/>
          <seriesInfo name="DOI" value="10.17487/RFC3986"/>
        </reference>
        <reference anchor="RFC9110" target="https://www.rfc-editor.org/info/rfc9110">
          <front>
            <title>HTTP Semantics</title>
            <author fullname="R. Fielding" initials="R." surname="Fielding" role="editor"/>
            <author fullname="M. Nottingham" initials="M." surname="Nottingham" role="editor"/>
            <author fullname="J. Reschke" initials="J." surname="Reschke" role="editor"/>
            <date month="June" year="2022"/>
          </front>
          <seriesInfo name="STD" value="97"/>
          <seriesInfo name="RFC" value="9110"/>
          <seriesInfo name="DOI" value="10.17487/RFC9110"/>
        </reference>
        <reference anchor="RFC5646" target="https://www.rfc-editor.org/info/rfc5646">
          <front>
            <title>Tags for Identifying Languages</title>
            <author fullname="A. Phillips" initials="A." surname="Phillips" role="editor"/>
            <author fullname="M. Davis" initials="M." surname="Davis" role="editor"/>
            <date month="September" year="2009"/>
          </front>
          <seriesInfo name="BCP" value="47"/>
          <seriesInfo name="RFC" value="5646"/>
          <seriesInfo name="DOI" value="10.17487/RFC5646"/>
        </reference>
      </references>

      <references>
        <name>Informative References</name>
        <reference anchor="RFC8126" target="https://www.rfc-editor.org/info/rfc8126">
          <front>
            <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
            <author fullname="M. Cotton" initials="M." surname="Cotton"/>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <author fullname="T. Narten" initials="T." surname="Narten"/>
            <date month="June" year="2017"/>
          </front>
          <seriesInfo name="BCP" value="26"/>
          <seriesInfo name="RFC" value="8126"/>
          <seriesInfo name="DOI" value="10.17487/RFC8126"/>
        </reference>
        <reference anchor="RFC2277" target="https://www.rfc-editor.org/info/rfc2277">
          <front>
            <title>IETF Policy on Character Sets and Languages</title>
            <author fullname="H. Alvestrand" initials="H." surname="Alvestrand"/>
            <date month="January" year="1998"/>
          </front>
          <seriesInfo name="BCP" value="18"/>
          <seriesInfo name="RFC" value="2277"/>
          <seriesInfo name="DOI" value="10.17487/RFC2277"/>
        </reference>
        <reference anchor="RFC4647" target="https://www.rfc-editor.org/info/rfc4647">
          <front>
            <title>Matching of Language Tags</title>
            <author fullname="A. Phillips" initials="A." surname="Phillips" role="editor"/>
            <author fullname="M. Davis" initials="M." surname="Davis" role="editor"/>
            <date month="September" year="2006"/>
          </front>
          <seriesInfo name="BCP" value="47"/>
          <seriesInfo name="RFC" value="4647"/>
          <seriesInfo name="DOI" value="10.17487/RFC4647"/>
        </reference>
        <reference anchor="RFC9846" target="https://www.rfc-editor.org/info/rfc9846">
          <front>
            <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <date month="July" year="2026"/>
          </front>
          <seriesInfo name="RFC" value="9846"/>
          <seriesInfo name="DOI" value="10.17487/RFC9846"/>
        </reference>
        <reference anchor="RFC3748" target="https://www.rfc-editor.org/info/rfc3748">
          <front>
            <title>Extensible Authentication Protocol (EAP)</title>
            <author fullname="B. Aboba" initials="B." surname="Aboba"/>
            <author fullname="L. Blunk" initials="L." surname="Blunk"/>
            <author fullname="J. Vollbrecht" initials="J." surname="Vollbrecht"/>
            <author fullname="J. Carlson" initials="J." surname="Carlson"/>
            <author fullname="H. Levkowetz" initials="H." surname="Levkowetz" role="editor"/>
            <date month="June" year="2004"/>
          </front>
          <seriesInfo name="RFC" value="3748"/>
          <seriesInfo name="DOI" value="10.17487/RFC3748"/>
        </reference>
        <reference anchor="RFC2759" target="https://www.rfc-editor.org/info/rfc2759">
          <front>
            <title>Microsoft PPP CHAP Extensions, Version 2</title>
            <author fullname="G. Zorn" initials="G." surname="Zorn"/>
            <date month="January" year="2000"/>
          </front>
          <seriesInfo name="RFC" value="2759"/>
          <seriesInfo name="DOI" value="10.17487/RFC2759"/>
        </reference>
        <reference anchor="RFC2865" target="https://www.rfc-editor.org/info/rfc2865">
          <front>
            <title>Remote Authentication Dial In User Service (RADIUS)</title>
            <author fullname="C. Rigney" initials="C." surname="Rigney"/>
            <author fullname="S. Willens" initials="S." surname="Willens"/>
            <author fullname="A. Rubens" initials="A." surname="Rubens"/>
            <author fullname="W. Simpson" initials="W." surname="Simpson"/>
            <date month="June" year="2000"/>
          </front>
          <seriesInfo name="RFC" value="2865"/>
          <seriesInfo name="DOI" value="10.17487/RFC2865"/>
        </reference>
        <reference anchor="RFC3579" target="https://www.rfc-editor.org/info/rfc3579">
          <front>
            <title>RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP)</title>
            <author fullname="B. Aboba" initials="B." surname="Aboba"/>
            <author fullname="P. Calhoun" initials="P." surname="Calhoun"/>
            <date month="September" year="2003"/>
          </front>
          <seriesInfo name="RFC" value="3579"/>
          <seriesInfo name="DOI" value="10.17487/RFC3579"/>
        </reference>
        <reference anchor="RFC3580" target="https://www.rfc-editor.org/info/rfc3580">
          <front>
            <title>IEEE 802.1X Remote Authentication Dial In User Service (RADIUS) Usage Guidelines</title>
            <author fullname="P. Congdon" initials="P." surname="Congdon"/>
            <author fullname="B. Aboba" initials="B." surname="Aboba"/>
            <author fullname="A. Smith" initials="A." surname="Smith"/>
            <author fullname="G. Zorn" initials="G." surname="Zorn"/>
            <author fullname="J. Roese" initials="J." surname="Roese"/>
            <date month="September" year="2003"/>
          </front>
          <seriesInfo name="RFC" value="3580"/>
          <seriesInfo name="DOI" value="10.17487/RFC3580"/>
        </reference>
        <reference anchor="RFC4851" target="https://www.rfc-editor.org/info/rfc4851">
          <front>
            <title>The Flexible Authentication via Secure Tunneling Extensible Authentication Protocol Method (EAP-FAST)</title>
            <author fullname="N. Cam-Winget" initials="N." surname="Cam-Winget"/>
            <author fullname="D. McGrew" initials="D." surname="McGrew"/>
            <author fullname="J. Salowey" initials="J." surname="Salowey"/>
            <author fullname="H. Zhou" initials="H." surname="Zhou"/>
            <date month="May" year="2007"/>
          </front>
          <seriesInfo name="RFC" value="4851"/>
          <seriesInfo name="DOI" value="10.17487/RFC4851"/>
        </reference>
        <reference anchor="RFC5216" target="https://www.rfc-editor.org/info/rfc5216">
          <front>
            <title>The EAP-TLS Authentication Protocol</title>
            <author fullname="D. Simon" initials="D." surname="Simon"/>
            <author fullname="B. Aboba" initials="B." surname="Aboba"/>
            <author fullname="R. Hurst" initials="R." surname="Hurst"/>
            <date month="March" year="2008"/>
          </front>
          <seriesInfo name="RFC" value="5216"/>
          <seriesInfo name="DOI" value="10.17487/RFC5216"/>
        </reference>
        <reference anchor="RFC5281" target="https://www.rfc-editor.org/info/rfc5281">
          <front>
            <title>Extensible Authentication Protocol Tunneled Transport Layer Security Authenticated Protocol Version 0 (EAP-TTLSv0)</title>
            <author fullname="P. Funk" initials="P." surname="Funk"/>
            <author fullname="S. Blake-Wilson" initials="S." surname="Blake-Wilson"/>
            <date month="August" year="2008"/>
          </front>
          <seriesInfo name="RFC" value="5281"/>
          <seriesInfo name="DOI" value="10.17487/RFC5281"/>
        </reference>
        <reference anchor="RFC8908" target="https://www.rfc-editor.org/info/rfc8908">
          <front>
            <title>Captive Portal API</title>
            <author fullname="T. Pauly" initials="T." surname="Pauly" role="editor"/>
            <author fullname="D. Thakore" initials="D." surname="Thakore" role="editor"/>
            <date month="September" year="2020"/>
          </front>
          <seriesInfo name="RFC" value="8908"/>
          <seriesInfo name="DOI" value="10.17487/RFC8908"/>
        </reference>
        <reference anchor="RFC8910" target="https://www.rfc-editor.org/info/rfc8910">
          <front>
            <title>Captive-Portal Identification in DHCP and Router Advertisements (RAs)</title>
            <author fullname="W. Kumari" initials="W." surname="Kumari"/>
            <author fullname="E. Kline" initials="E." surname="Kline"/>
            <date month="September" year="2020"/>
          </front>
          <seriesInfo name="RFC" value="8910"/>
          <seriesInfo name="DOI" value="10.17487/RFC8910"/>
        </reference>
        <reference anchor="IEEE802.1X">
          <front>
            <title>IEEE Standard for Local and Metropolitan Area Networks--Port-Based Network Access Control</title>
            <author>
              <organization>IEEE</organization>
            </author>
            <date year="2020"/>
          </front>
          <seriesInfo name="IEEE Std" value="802.1X-2020"/>
        </reference>
        <reference anchor="MS-PEAP" target="https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-peap/">
          <front>
            <title>[MS-PEAP]: Protected Extensible Authentication Protocol (PEAP)</title>
            <author>
              <organization>Microsoft Corporation</organization>
            </author>
            <date/>
          </front>
        </reference>
      </references>
    </references>
  </back>
</rfc>
