OAuth Profile for Native Clients of Open Protocols
draft-ietf-mailmaint-oauth-public-08
| Document | Type | Active Internet-Draft (mailmaint WG) | |
|---|---|---|---|
| Authors | Neil Jenkins , Ben Bucksch | ||
| Last updated | 2026-11-18 | ||
| Replaces | draft-jenkins-oauth-public | ||
| RFC stream | Internet Engineering Task Force (IETF) | ||
| Intended RFC status | Informational | ||
| Formats | |||
| Reviews |
ARTART Early review
(of
-06)
by Martin Dürst
Ready w/issues
|
||
| Additional resources | Mailing list discussion | ||
| Stream | WG state | WG Document | |
| Associated WG milestone |
|
||
| Document shepherd | (None) | ||
| IESG | IESG state | I-D Exists | |
| Consensus boilerplate | Unknown | ||
| Telechat date | (None) | ||
| Responsible AD | (None) | ||
| Send notices to | (None) |
draft-ietf-mailmaint-oauth-public-08
Mail Maintenance N.M. Jenkins, Ed.
Internet-Draft Fastmail
Updates: 8620 (if approved) B. Bucksch
Intended status: Informational Beonex
Expires: 22 May 2027 18 November 2026
OAuth Profile for Native Clients of Open Protocols
draft-ietf-mailmaint-oauth-public-08
Abstract
This document specifies a profile of the OAuth authorization protocol
to allow for interoperability between native clients and servers
using open protocols, such as JMAP, IMAP, SMTP, POP, CalDAV, and
CardDAV. The profile is restricted to native clients, that is,
applications installed and run on the end user's device. It
deliberately does not support web-based clients, which cannot
complete the flow as specified. This document updates RFC 8620 by
adding a column for interoperable OAuth scopes to the JMAP
Capabilities registry.
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on 22 May 2027.
Copyright Notice
Copyright (c) 2026 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents (https://trustee.ietf.org/
license-info) in effect on the date of publication of this document.
Please review these documents carefully, as they describe your rights
Jenkins & Bucksch Expires 22 May 2027 [Page 1]
Internet-Draft OAuth for Native Clients November 2026
and restrictions with respect to this document. Code Components
extracted from this document must include Revised BSD License text as
described in Section 4.e of the Trust Legal Provisions and are
provided without warranty as described in the Revised BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. Notational Conventions . . . . . . . . . . . . . . . . . 3
1.2. Applicability to Native Clients Only . . . . . . . . . . 3
1.3. Protocol Overview . . . . . . . . . . . . . . . . . . . . 4
2. Discovering the Authorization Server . . . . . . . . . . . . 7
2.1. HTTP-Based Protocols . . . . . . . . . . . . . . . . . . 7
2.2. IMAP, POP, and SMTP . . . . . . . . . . . . . . . . . . . 8
3. Authorization Server Metadata . . . . . . . . . . . . . . . . 8
3.1. Fetching the Metadata . . . . . . . . . . . . . . . . . . 8
3.2. Required Properties . . . . . . . . . . . . . . . . . . . 9
3.3. Conditional and Optional Properties . . . . . . . . . . . 10
3.3.1. Protected Resources . . . . . . . . . . . . . . . . . 10
3.3.2. DPoP . . . . . . . . . . . . . . . . . . . . . . . . 11
3.3.3. Token Revocation . . . . . . . . . . . . . . . . . . 11
3.4. Validating the Metadata . . . . . . . . . . . . . . . . . 12
4. Dynamic Client Registration . . . . . . . . . . . . . . . . . 12
4.1. Registration Request . . . . . . . . . . . . . . . . . . 12
4.2. Redirect URI Requirements . . . . . . . . . . . . . . . . 14
4.3. Server Processing . . . . . . . . . . . . . . . . . . . . 15
4.4. Registration Response . . . . . . . . . . . . . . . . . . 16
4.5. Client Id Validity . . . . . . . . . . . . . . . . . . . 17
5. Authorization . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1. Authorization Request . . . . . . . . . . . . . . . . . . 18
5.2. Determining Resource Indicator Values . . . . . . . . . . 20
5.3. User-Agent Requirements . . . . . . . . . . . . . . . . . 22
5.4. Server Processing . . . . . . . . . . . . . . . . . . . . 23
5.5. Authorization Response . . . . . . . . . . . . . . . . . 24
6. Obtaining Tokens . . . . . . . . . . . . . . . . . . . . . . 25
6.1. Exchanging the Authorization Code . . . . . . . . . . . . 25
6.2. Token Response . . . . . . . . . . . . . . . . . . . . . 26
6.3. Refreshing the Access Token . . . . . . . . . . . . . . . 27
6.4. Refresh Token Rotation and Replay Protection . . . . . . 28
6.5. Token Lifetimes and Revocation . . . . . . . . . . . . . 31
7. Using Access Tokens . . . . . . . . . . . . . . . . . . . . . 32
7.1. Permitted Resource Servers . . . . . . . . . . . . . . . 33
7.2. Service-Supplied Endpoints . . . . . . . . . . . . . . . 34
7.3. Authenticating to Resource Servers . . . . . . . . . . . 36
7.4. DPoP and Non-HTTP Protocols . . . . . . . . . . . . . . . 37
8. Scopes . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
9. Security Considerations . . . . . . . . . . . . . . . . . . . 39
10. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 46
Jenkins & Bucksch Expires 22 May 2027 [Page 2]
Internet-Draft OAuth for Native Clients November 2026
10.1. Interoperable OAuth Scopes Registry . . . . . . . . . . 46
10.1.1. Applicability of Registered Scopes . . . . . . . . . 46
10.1.2. Scope Naming Conventions . . . . . . . . . . . . . . 46
10.1.3. Registration Procedure . . . . . . . . . . . . . . . 47
10.1.4. Registration Template . . . . . . . . . . . . . . . 49
10.1.5. Initial Registry Contents . . . . . . . . . . . . . 49
10.2. OAuth URI Registrations . . . . . . . . . . . . . . . . 50
10.3. Update to the JMAP Capabilities Registry . . . . . . . . 51
10.3.1. Initial Interoperable OAuth Scopes Values for the JMAP
Capabilities Registry . . . . . . . . . . . . . . . . 51
11. Normative References . . . . . . . . . . . . . . . . . . . . 53
12. Informative References . . . . . . . . . . . . . . . . . . . 56
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 57
1. Introduction
This document pulls together several existing standards and uses them
to specify a specific OAuth profile, allowing interoperable modern
authentication for native clients of open protocols, such as JMAP,
IMAP, SMTP, POP, CalDAV, and CardDAV. For these protocols, there are
many servers and many clients with no pre-existing relationship, that
need to be able to connect. At the moment, the only interoperable
way to do so is with a basic username and password, which has many
deficiencies from a security standpoint.
1.1. Notational Conventions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in BCP
14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
1.2. Applicability to Native Clients Only
This profile applies only to native clients: applications that are
installed and executed on the end user's device, as described in
[RFC8252]. Web-based clients, that is, clients that run in a web
browser or on a web server, are out of scope for this document.
Jenkins & Bucksch Expires 22 May 2027 [Page 3]
Internet-Draft OAuth for Native Clients November 2026
This restriction is deliberate. The profile allows any client to
register with any server without a pre-existing relationship (see
Section 4), and there is no way for the server to verify any of the
information supplied during that registration. For a native client,
this does not introduce a new risk. A malicious application that the
user has already installed and run could spoof the user's browser to
phish their credentials, or, in unsandboxed environments, install
malware. Allowing it to complete an OAuth flow therefore makes the
user no worse off. Indeed, it is more secure, as the alternative is
a legitimate client storing the user's password.
Just navigating to a web page, however, is a different security
scenario. Allowing arbitrary web-based clients to seamlessly
register and obtain authorization would make it substantially easier
for phishing sites to gain access to a user's account. A phishing
site could send the user through a legitimate OAuth flow at the real
authorization server, and then receive the resulting tokens.
The profile therefore enforces this restriction by limiting the
redirect URIs that may be registered to loopback addresses
(Section 7.3 of [RFC8252]) and private-use URI schemes (Section 7.1
of [RFC8252]), which can only be received by software running on the
user's device. See Section 4.2 for the specific requirements and
Section 9 for further discussion.
Native clients are public clients in OAuth terminology (Section 2.1
of [RFC6749]). The client software is distributed to and runs on end
users' devices, so it cannot hold a client secret that is kept
confidential from those users. "Public" refers only to this
property; each client instance is typically used by a single user to
access their own account.
1.3. Protocol Overview
OAuth 2 [RFC6749] can be used in many different ways. This document
specifies one particular set of options to ensure interoperability
and security. Servers may implement more options, but MUST support
the flow as described in this document for interoperability with
clients. Similarly, clients may choose to support additional flows
but there is no guarantee that this will be interoperable.
This profile presumes a deployment has a set of one or more resource
server endpoints (e.g., for JMAP/IMAP/SMTP/POP/CardDAV/CalDAV), and a
common authorization server issuer identifier for all of them. For
example, a deployment might have a JMAP session endpoint
https://api.example.com/jmap/session, an IMAP endpoint
imap.example.com, and an issuer identifier https://auth.example.com/
acmeinc.
Jenkins & Bucksch Expires 22 May 2027 [Page 4]
Internet-Draft OAuth for Native Clients November 2026
The protocol involves four parties: the client instance (a single
installation of the client software on the user's device), the user-
agent (normally the user's web browser), the authorization server,
and the resource servers the client instance wishes to access.
Figure 1 shows the messages exchanged between them.
Client User-Agent Authorization Resource
Instance (Browser) Server Server
| | | |
| (1) Discover issuer (if needed) | |
|-------------------------------------------------------->|
|<--------------------------------------------------------|
| | | |
| (2) Fetch metadata | |
|------------------------------------>| |
|<------------------------------------| |
| | | |
| (3) Register | | |
|------------------------------------>| |
|<-- client_id -----------------------| |
| | | |
| (4) Open | | |
| authorization | | |
| request | | |
|---------------->| | |
| | | |
| | (5) Authenticate | |
| | and grant access | |
| |------------------>| |
| |<------------------| |
| | | |
| (6) Redirect | | |
| with code | | |
|<----------------| | |
| | | |
| (7) Exchange code for tokens | |
|------------------------------------>| |
|<-- access + refresh tokens ---------| |
| | | |
| (8) Access resources with access token |
|-------------------------------------------------------->|
|<--------------------------------------------------------|
| | | |
| (9) Refresh access token | |
|--- refresh token ------------------>| |
|<-- new access token ----------------| |
Figure 1: Protocol Overview
Jenkins & Bucksch Expires 22 May 2027 [Page 5]
Internet-Draft OAuth for Native Clients November 2026
The steps are as follows:
1. The client instance discovers the authorization server's issuer
identifier, either from autoconfiguration or user input, or by
querying a resource server (Section 2).
2. The OAuth 2.0 Authorization Server Metadata [RFC8414] is fetched
(Section 3).
3. The client instance registers with the authorization server to
get a client id using the OAuth 2.0 Dynamic Client Registration
Protocol [RFC7591] (Section 4).
4. The client instance opens an authorization request in the user's
browser (Section 5.1 and Section 5.3). It authorizes using the
Authorization Code Grant flow (Section 4.1 of [RFC6749]) with
PKCE [RFC7636] and Issuer Identification [RFC9207]. The client
instance also includes Resource Indicators [RFC8707] in the
authorization request. Server support for Resource Indicators is
RECOMMENDED but not required. An authorization server that does
not support them ignores the unrecognized parameters (as required
by Section 3.1 of [RFC6749]), and the flow proceeds without them.
The client instance then relies on the rules in Section 7.1 to
decide which resource servers it may send access tokens to. The
consequences of this are discussed in Section 5.2, Section 7.1,
and Section 9.
5. The authorization server authenticates the user and asks them to
grant access to the client (Section 5.4).
6. The authorization server redirects the user-agent back to the
client instance with an authorization code. The client instance
verifies the response (Section 5.5).
7. The client instance exchanges the authorization code for an
access token and refresh token, as per Section 4.1.3 of [RFC6749]
(Section 6).
8. The access token is used to authenticate requests to the resource
servers, as per [RFC6750] (or [RFC9449] if using DPoP) for HTTP
requests, or [RFC7628] for SASL authentication (Section 7).
9. When the access token expires, a new one is requested using the
refresh token, as per Section 6 of [RFC6749] (Section 6.3).
The rest of this document describes in detail each of the above
steps.
Jenkins & Bucksch Expires 22 May 2027 [Page 6]
Internet-Draft OAuth for Native Clients November 2026
2. Discovering the Authorization Server
The endpoints may be discovered via an autoconfiguration mechanism,
such as [I-D.ietf-mailmaint-pacc], or via manual user input.
Autoconfiguration may also include the issuer identifier.
2.1. HTTP-Based Protocols
HTTP endpoints that support this profile MUST support Protected
Resource Metadata [RFC9728], accessible via the oauth-protected-
resource well-known path, as specified in Section 3 of [RFC9728].
This allows OAuth to be configured when the endpoints were entered
manually, or when the autoconfiguration data does not include the
issuer identifier. The authorization_servers property MUST be
present in the resource metadata. Servers SHOULD list exactly one
issuer identifier, that of the authorization server to be used with
this profile; if more than one is listed, the client instance MUST
use the first. HTTP requests made without valid authentication to
the resource endpoints MUST indicate the protected resource metadata
URL in the resource_metadata parameter of the WWW-Authenticate HTTP
response header field, as described in Section 5.1 of [RFC9728].
A client instance that needs the issuer identifier for an HTTP
endpoint SHOULD obtain the metadata URL by making a request to the
endpoint without credentials and reading the resource_metadata
parameter from the WWW-Authenticate header field of the response.
This works for endpoints whose own path is a well-known path, such as
https://caldav.example.com/.well-known/caldav. It also works for
endpoints that redirect during service discovery, as is common for
CalDAV and CardDAV: the client instance follows the redirects as it
normally would, and reads the header field from the final response.
If the header field is absent, the client instance MAY instead
construct the metadata URL from the endpoint URL as described in
Section 3.1 of [RFC9728]. The client instance MUST NOT follow HTTP
redirects when fetching the metadata document itself.
In either case, the client instance MUST validate the metadata as
required by Section 3.3 of [RFC9728]. If the metadata URL was
obtained from the WWW-Authenticate header field, the resource
property MUST be identical to the URL of the request that returned
that header field. If the metadata URL was constructed, the resource
property MUST be identical to the endpoint URL into which the well-
known path was inserted. If it is not, the metadata MUST NOT be
used. This check ensures that a redirect or a misconfigured server
cannot cause the client instance to use metadata that describes some
other resource.
Jenkins & Bucksch Expires 22 May 2027 [Page 7]
Internet-Draft OAuth for Native Clients November 2026
2.2. IMAP, POP, and SMTP
Protected Resource Metadata is only available for HTTP-based
endpoints. For IMAP, POP, and SMTP, the equivalent in-protocol
mechanism is the openid-configuration field of the OAUTHBEARER
failed-authentication response (Section 3.2.2 of [RFC7628]). Servers
offering these protocols under this profile MUST include this field
in every failed OAUTHBEARER response, with the URL of the
authorization server metadata document, in either of the forms
described in Section 3.1. [RFC7628] defines this field as the URL of
an OpenID Connect Discovery document; this profile also permits the
URL of an RFC 8414 metadata document.
A client instance that has not obtained the issuer identifier from
autoconfiguration or the user MAY discover it as follows. The client
instance connects to the endpoint over TLS, and attempts OAUTHBEARER
authentication with a syntactically valid but deliberately invalid
token. It then reads this field from the failure response. If the
URL does not use the https scheme, the client instance MUST NOT use
it. Otherwise, the client instance MUST then fetch the document at
that URL, without following redirects (as in Section 3.1), and take
its issuer property as the issuer identifier. It MUST then discard
the fetched document, and proceed as described in Section 3.1
starting from the issuer identifier alone. This ensures the metadata
used is subject to every check in this document, regardless of the
URL to which the field pointed. As with autoconfiguration data and
protected resource metadata, the URL is supplied by a server that may
itself be counterfeit, and the protections of Section 7.1 apply.
3. Authorization Server Metadata
3.1. Fetching the Metadata
The authorization server issuer identifier MUST be an HTTPS URL with
no userinfo, query, or fragment component. If a path is present, it
MUST NOT contain . or .. segments, and MUST NOT use percent-encoding
for unreserved characters (as defined in Section 2.3 of [RFC3986]).
If the issuer identifier does not conform to these requirements, the
flow MUST be aborted. Note that https://auth.example.com and
https://auth.example.com/ are both permitted, but they are distinct
issuer identifiers: clients do not normalize one to the other, and
the issuer metadata property (see Section 3.2) must match exactly
whichever form was used. The authorization server metadata MUST
first be fetched as specified in Section 3 of [RFC8414] by
constructing a URL that places /.well-known/oauth-authorization-
server after the host and before any path. For example, for an
issuer identifier of https://auth.example.com/acmeinc, the
authorization server metadata would be fetched from
Jenkins & Bucksch Expires 22 May 2027 [Page 8]
Internet-Draft OAuth for Native Clients November 2026
https://auth.example.com/.well-known/oauth-authorization-server/
acmeinc.
If this request does not result in a successful response (a 200 OK
HTTP status code with an "application/json" content type), the client
MUST also try the OpenID Connect Discovery [OpenID.Discovery]
metadata path. This is constructed by appending /.well-known/openid-
configuration to the issuer identifier after stripping any trailing
slash. For example, for an issuer identifier of
https://auth.example.com/acmeinc, this would be
https://auth.example.com/acmeinc/.well-known/openid-configuration.
This fallback is necessary for compatibility with existing
deployments that only serve metadata at the OpenID Connect path. See
Section 9 for a discussion of the security implications of this
fallback.
A successful response is indicated by a 200 OK HTTP status code. The
response MUST have an "application/json" content type. If neither
metadata path results in a successful response, the flow MUST be
aborted. Clients MUST NOT follow HTTP redirects when fetching the
metadata; a redirect MUST be treated the same as an error response.
3.2. Required Properties
The authorization server metadata is a JSON document with properties
as specified in [RFC8414]. It MUST include the following properties:
issuer
The authorization server's issuer identifier. This MUST be
identical to the issuer identifier from which this metadata URL
was derived — not the URL from which it was fetched. For example,
if the issuer identifier is https://auth.example.com/acmeinc, the
issuer property MUST be https://auth.example.com/acmeinc,
regardless of whether the metadata was fetched from
https://auth.example.com/.well-known/oauth-authorization-server/
acmeinc or https://auth.example.com/acmeinc/.well-known/openid-
configuration. If not, the flow MUST be aborted.
This MUST be verified again during the authorization flow (see
Section 5.5, or [RFC9207] for more details), to protect against
mix-up attacks.
registration_endpoint
The URL the client instance will use to register, to get a client
id it needs for authorization (see Section 4).
authorization_endpoint
Jenkins & Bucksch Expires 22 May 2027 [Page 9]
Internet-Draft OAuth for Native Clients November 2026
The URL the client instance will use to start the authorization
process (see Section 5) once it has registered.
token_endpoint
The URL the client instance will use to get refresh and access
tokens after successful authorization (see Section 6).
scopes_supported
An array of supported scopes on the server (see Section 8).
response_types_supported
A list of response types supported in the OAuth authorization
flow. This is an array of strings that MUST include "code".
grant_types_supported
A list of the OAuth 2.0 grant type values that this authorization
server supports. This is an array of strings that MUST include
"authorization_code" and "refresh_token".
token_endpoint_auth_methods_supported
This is an array of strings that MUST include "none".
code_challenge_methods_supported
An array of strings listing Proof Key for Code Exchange (PKCE)
[RFC7636] code challenge methods supported by this authorization
server. This MUST include "S256".
authorization_response_iss_parameter_supported
This MUST have the boolean value true.
3.3. Conditional and Optional Properties
This section describes metadata properties that are required only in
some circumstances, or are optional.
3.3.1. Protected Resources
Servers MUST include the following property if either of these
conditions applies:
* Any resource server accessed via this profile, other than one
reached only through a service-supplied endpoint URL (see
Section 7.2), does not share the registrable domain of the issuer
identifier (see Section 7.1).
* The server requires Resource Indicators [RFC8707], that is, it
will not issue a usable access token unless the authorization
request includes resource parameters.
Jenkins & Bucksch Expires 22 May 2027 [Page 10]
Internet-Draft OAuth for Native Clients November 2026
All other servers that support Resource Indicators SHOULD include it:
protected_resources
A JSON array of strings, as defined in Section 4 of [RFC9728],
listing all of the resource indicator values that may be used with
this authorization server for resources accessed via this profile.
Clients use this list to determine the resource values to send in
the authorization request (see Section 5.2). For HTTP-based
protocols, each entry is an https URL with no query or fragment
part that identifies a resource server, or a path within one, for
example https://api.example.com or https://caldav.example.com/dav.
Entries are matched against resource locations as described in
Section 5.2. For non-HTTP protocols, each entry is a hostname
with no scheme or port, for example imap.example.com. Section 4
of [RFC9728] defines the entries of this array as resource
identifiers, which Section 1.2 of [RFC9728] restricts to https
URLs. This profile deviates from that restriction for non-HTTP
protocols, for the reasons given in Section 5.2.
[RFC9728] permits an authorization server to omit some of its
protected resources from this list. This profile is stricter: if
the property is present, it MUST include an entry matching every
resource endpoint that may be accessed using this profile, other
than those reached only through service-supplied endpoint URLs
(see Section 7.2). This is because a client can only send
resource indicators for endpoints that it can match against the
list.
3.3.2. DPoP
It is RECOMMENDED servers support DPoP ([RFC9449]) to allow sender-
constrained refresh and access tokens for HTTP-based protocols.
Servers that support DPoP MUST include the following property:
dpop_signing_alg_values_supported
A JSON array containing a list of the JWS alg values (from the
[IANA.JOSE.ALGS] registry) supported by the authorization server
for DPoP proof JWTs, as defined in [RFC9449], Section 5.1.
3.3.3. Token Revocation
Also of possible interest to client/server implementers following
this document:
revocation_endpoint
The URL the client instance can use to revoke its tokens, as per
[RFC7009].
Jenkins & Bucksch Expires 22 May 2027 [Page 11]
Internet-Draft OAuth for Native Clients November 2026
revocation_endpoint_auth_methods_supported
If a revocation_endpoint is included, this property MUST be
included, and is an array of strings that MUST include "none".
3.4. Validating the Metadata
Clients MUST verify that all of the properties listed in Section 3.2
are present and conform to the requirements of this document. If any
of them is missing or does not conform, the server is not using OAuth
in conformance with this document, and the client MUST abort the
flow.
Clients MUST also verify that the values of the
registration_endpoint, authorization_endpoint, and token_endpoint
properties, and of the revocation_endpoint property if present, are
all URLs with the https scheme. If any of these values does not use
the https scheme, the client MUST abort the flow. This is required
because the client instance will send authorization codes and refresh
tokens to these endpoints.
The metadata MAY include other properties, or other values for multi-
valued properties, however clients are not required to understand or
use any of them for interoperability.
4. Dynamic Client Registration
4.1. Registration Request
The client registration endpoint MUST accept registration requests
that carry no initial access token or other form of authentication
(open registration, see Section 3 of [RFC7591]), since a client
instance following this profile has no pre-existing relationship with
the server.
To register, the client instance sends an HTTP POST to the client
registration endpoint (as found in the metadata) with a content type
of "application/json", and a body consisting of a JSON document with
the following properties. The client_uri, logo_uri, tos_uri,
policy_uri, software_id, and software_version properties are
OPTIONAL, but client instances SHOULD include them wherever the
information is available. All other properties in the list below
MUST be included.
redirect_uris
An array of URIs the client instance may use to receive back
information at the end of the authorization flow. Each URI MUST
satisfy the requirements in Section 4.2.
Jenkins & Bucksch Expires 22 May 2027 [Page 12]
Internet-Draft OAuth for Native Clients November 2026
token_endpoint_auth_method
This MUST be "none".
grant_types
This is an array of strings that MUST include "authorization_code"
and "refresh_token".
response_types
This is an array of strings that MUST include "code".
scope
A string containing a space-separated list of scope values the
client may request access for. (Note! This is not a JSON array.)
client_name
The name of the client software to be presented to the end-user
during authorization.
client_uri
A URL for a web page providing information about the client
software. This MUST use HTTPS.
logo_uri
A URL for a logo to display for this client software. This SHOULD
be square, and in a PNG or SVG image format. This MUST use HTTPS.
tos_uri
A URL that points to a human-readable terms of service or license
document for the client software. This MUST use HTTPS.
policy_uri
A URL that points to a human-readable privacy policy document for
the client software. This MUST use HTTPS.
software_id
A unique identifier string (e.g., a Universally Unique Identifier
(UUID)) assigned by the client developer or software publisher,
used by registration endpoints to identify the client software
doing the dynamic registration. Unlike "client_id", which is
issued by the authorization server and may vary between instances,
the "software_id" SHOULD remain the same for all instances of the
client software. The "software_id" SHOULD remain the same across
multiple updates or versions of the same piece of software. The
value of this field is not intended to be human readable and is
usually opaque to the client and authorization server.
Jenkins & Bucksch Expires 22 May 2027 [Page 13]
Internet-Draft OAuth for Native Clients November 2026
software_version
A version identifier string for the client software identified by
"software_id". The value of the "software_version" SHOULD change
on any update to the client software identified by the same
"software_id". The value of this field is intended to be compared
using string equality matching and no other comparison semantics
are defined by this specification.
For compatibility with servers implementing OpenID Connect Core
[OpenID.Core], if the server advertised the offline_access scope in
the "scopes_supported" property of the authorization server metadata,
the client instance MUST also register for this scope.
If the server indicated in its metadata that it supports DPoP
[RFC9449] and the client instance is intending to authenticate all
requests using DPoP, the client instance SHOULD also include the
following property, with the value true:
dpop_bound_access_tokens
A boolean, as defined in Section 5.2 of [RFC9449]. If the
property is omitted, the value is false.
If the value is true, the server MUST require every token request
for the issued client id to include a DPoP proof, and MUST issue
only DPoP-bound access tokens, as specified in Section 5.2 of
[RFC9449].
DPoP is only defined for HTTP, so a client instance that uses non-
HTTP protocols such as IMAP, POP, or SMTP MUST NOT set this
property to true. See Section 7.4 for how such a client instance
can still make use of DPoP.
4.2. Redirect URI Requirements
Each redirect URI registered by the client instance MUST satisfy all
of these conditions:
* The URI MUST start with one of the following:
- http://127.0.0.1/
- http://[::1]/
Jenkins & Bucksch Expires 22 May 2027 [Page 14]
Internet-Draft OAuth for Native Clients November 2026
- A private-use URI scheme, as described in Section 7.1 of
[RFC8252]: a scheme that is not registered with IANA, and is
instead named after a domain the client developer controls,
written in reverse order, as recommended for private use by
Section 3.8 of [RFC7595]. For example, the developer of
example.com could use the scheme com.example, giving a redirect
URI such as com.example:/. Such a scheme MUST have at least one
dot in it.
* The URI MUST NOT include two consecutive dots (e.g., /../).
* The URI MUST NOT include a fragment part (#).
The URI may include a path and query parameters.
Some platforms allow an application to claim an "https" URL, so that
the operating system delivers it to the application rather than
opening it in a browser. Section 7.2 of [RFC8252] describes using
such a URL as a redirect URI, and for native clients it is otherwise
the most secure option. This profile deliberately does not permit
this. An authorization server cannot tell whether an "https"
redirect URI has been claimed by a native application or is an
ordinary web page. Permitting such URIs would therefore allow web-
based clients to complete the flow. See Section 1.2 and Section 9.
The redirect URI restrictions MUST be enforced: a registration
request containing a redirect URI that does not satisfy them MUST be
rejected with an invalid_redirect_uri error (Section 3.2.2 of
[RFC7591]). These ensure the OAuth flow can only be completed by
native clients — not web clients — as discussed in Section 1.2.
Since a malicious native client could present the user with a custom
browser to phish credentials anyway, the lack of verification of
client registration details does not provide additional danger beyond
existing threats. Allowing seamless dynamic registration for web-
based clients, however, unfortunately makes it much easier for a
phishing site to gain access to an account, by sending the user
through the OAuth flow.
4.3. Server Processing
The server MUST check that all required properties are present and
have valid values, and MUST reject a registration request that omits
a required property with an invalid_client_metadata error
(Section 3.2.2 of [RFC7591]). Any unknown properties supplied by the
client instance MUST just be ignored. The authorization server MAY
replace any of the client's requested metadata values submitted
during the registration and substitute them with suitable values.
Jenkins & Bucksch Expires 22 May 2027 [Page 15]
Internet-Draft OAuth for Native Clients November 2026
If there is an exact match for all properties except for
software_version, an existing registration may be returned.
Otherwise, servers SHOULD create a new registration and client id.
There is no way to verify the authenticity of the information
supplied by the client. However, the information is usually
accurate, and is still useful to the server: for example, it allows
the server to contact client authors to help debug issues if aberrant
behavior is observed. Servers MAY choose to ignore all of the
information instead and just return a static client id to all
requests.
4.4. Registration Response
If successful, the server responds with an HTTP 201 Created status
code and a body of type "application/json". The body is a JSON
object containing all the properties submitted during registration,
with their values as set by the server if it replaced any of them,
plus the following property:
client_id
The OAuth 2.0 client identifier string, used in the authorization
flow (see Section 5).
Clients following this profile are public clients (see Section 1.2):
they register with a token_endpoint_auth_method of "none" and do not
authenticate to the token endpoint, instead proving possession of the
authorization code using PKCE. The server MUST NOT issue a client
secret in the registration response, so the client_secret and
client_secret_expires_at properties defined in Section 3.2.1 of
[RFC7591] MUST NOT be present. A native client cannot keep a secret
confidential, so a secret would offer no security benefit, and a
client that expected to use one would not be interoperable with
servers that correctly omit it. If a server nonetheless returns a
client_secret, the client instance MUST ignore it and continue as a
public client.
The client instance MUST use the values returned in the registration
response in preference to those it requested, in particular for the
redirect_uris, scope, and dpop_bound_access_tokens properties. If
the returned redirect_uris or scope omit a value the client instance
requires, it MUST abort the flow and inform the user. The server may
omit dpop_bound_access_tokens from the response or return it as
false, for example because it returns a static client id to all
requests. In that case, the client instance MUST NOT assume that
access tokens will be DPoP-bound and MUST check the token_type of
each token response (see Section 7.4). Conversely, if the server
returns dpop_bound_access_tokens as true when the client instance did
Jenkins & Bucksch Expires 22 May 2027 [Page 16]
Internet-Draft OAuth for Native Clients November 2026
not request it, and the client instance needs to access non-HTTP
resources, it MUST abort the flow and inform the user, as it will not
be able to obtain bearer access tokens.
If the registration fails, the server will respond with an HTTP 400
status code and a JSON body as described in Section 3.2.2 of
[RFC7591].
4.5. Client Id Validity
The client id MUST remain valid for as long as there is a valid
refresh token associated with that client id.
To ensure a good user experience, the client id assigned upon dynamic
registration SHOULD be valid for use in the authorization flow
(Section 5) for at least one hour after issuance.
Clients MUST associate a client id with each refresh token they have.
If the refresh token is invalidated and the client instance has to
reauthenticate, it MUST submit the dynamic client registration
(Section 4) again and use the client id returned, which MAY be
different than the previous client id. A client instance that
receives an invalid_client error from the token endpoint MUST
likewise treat the client id as no longer valid and re-register
before obtaining new authorization.
Servers that wish to store client registration information MUST be
careful of resource exhaustion attacks. A RECOMMENDED approach is
to:
* Normalize and securely hash the submitted registration data.
* Check if this hash already exists in the database, and if so
return the existing client id issued for this registration.
* Otherwise, keep the registration in temporary storage and only
insert it into the database upon successful authorization.
Creating a new client id in the temporary storage can be rate
limited, for example by IP.
* Remove any client registrations from the database whenever there
are no valid refresh tokens associated with that client id.
5. Authorization
Jenkins & Bucksch Expires 22 May 2027 [Page 17]
Internet-Draft OAuth for Native Clients November 2026
5.1. Authorization Request
Clients construct an authorization request URL by taking the
authorization_endpoint from the authorization server metadata and
adding the following additional query parameters:
client_id
The client id as returned in the registration.
redirect_uri
One of the redirect URIs registered by the client instance. This
MUST be identical to the registered URI, with one exception. If
the registered URI has the prefix "http://127.0.0.1/" or
"http://[::1]/", the URI sent MAY differ from it by the addition
of a port number, and the authorization server MUST accept any
port (see Section 7.3 of [RFC8252]). This is necessary because
the client instance cannot know in advance which port it will be
able to listen on.
For example, if http://127.0.0.1/redirect was registered, then the
client instance could send http://127.0.0.1:49152/redirect as the
redirect_uri for authorization.
response_type
This MUST be "code".
scope
A space delimited set of scopes the client instance would like
access to. This MUST be a subset of the scopes registered for
this client id.
code_challenge
A PKCE code challenge as per [RFC7636], using SHA 256. To
generate a challenge, first generate a code_verifier. This is a
high-entropy cryptographic random string using the unreserved
characters [A-Z] / [a-z] / [0-9] / "-" / "." / "_" / "~" from
Section 2.3 of [RFC3986], with a minimum length of 43 characters
and a maximum length of 128 characters.
The code_challenge is then BASE64URL-
ENCODE(SHA256(ASCII(code_verifier))).
code_challenge_method
This MUST be "S256".
resource
Jenkins & Bucksch Expires 22 May 2027 [Page 18]
Internet-Draft OAuth for Native Clients November 2026
A Resource Indicator [RFC8707] for a resource endpoint (as
obtained from autoconfiguration or user input) that the client
instance wishes to access after successful authorization. The
client instance MUST include a resource parameter for each
endpoint it intends to use, so if it wishes to use multiple
protocols it will include multiple resource query parameters. If
two endpoints result in the same value, the value MUST only be
included once.
The value for each endpoint is determined as described in
Section 5.2.
state
An opaque value used by the client instance to verify that an
authorization response is due to a request that the client
instance initiated. The authorization server will include this
value when redirecting the user-agent back to the client instance.
Client instances MUST generate a state with a unique, unguessable
random string when initiating an authorization request.
login_hint (optional)
The username the user originally asked to log in with, as defined
in Section 3.1.2.1 of [OpenID.Core]. The server can prefill this
in a login form. Note, the user may choose to log in with a
different username.
For compatibility with servers implementing OpenID Connect Core
[OpenID.Core], if the server advertised the offline_access scope in
the "scopes_supported" property of the authorization server metadata,
the client instance MUST also request this scope. Section 11 of
[OpenID.Core] further requires the prompt parameter to have the value
consent when offline_access is requested, unless other conditions
permitting offline access are in place, and some deployments will not
issue a refresh token without it. A client instance requesting
offline_access SHOULD therefore also include a prompt parameter with
the value consent (see Section 3.1.2.1 of [OpenID.Core]).
The client instance MAY include additional request parameters defined
by other OAuth extensions, for example the prompt or ui_locales
parameters defined by OpenID Connect Core [OpenID.Core]. This does
not permit alternative or additional values for the parameters
defined above; in particular, it does not relax the redirect_uri
matching rules, and a request whose defined parameters do not conform
MUST be rejected regardless of any other parameters present. The
authorization server MUST ignore any request parameter it does not
recognize, as required by Section 3.1 of [RFC6749], and clients MUST
NOT depend on such parameters being understood for interoperability.
Ignoring unrecognized parameters is safe because they cannot affect
Jenkins & Bucksch Expires 22 May 2027 [Page 19]
Internet-Draft OAuth for Native Clients November 2026
the processing of the parameters defined by this document, and it
allows this profile to coexist with other OAuth extensions that both
the client and server happen to support.
5.2. Determining Resource Indicator Values
The client instance determines the resource value for each endpoint
(see Section 5.1) as follows. First, the client instance determines
the endpoint's resource location. If the client instance followed
HTTP redirects to reach the endpoint during service discovery (see
Section 2.1), the endpoint URL used here is the URL of the final
response, after following those redirects.
* For HTTP-based protocols, such as JMAP, CalDAV, and CardDAV, this
is the endpoint URL, for example https://api.example.com/jmap/
session or https://caldav.example.com/.well-known/caldav.
* For non-HTTP protocols, such as IMAP, POP, and SMTP, this is the
hostname of the server with no scheme or port, for example
imap.example.com.
Then, if the authorization server metadata includes the
protected_resources property (see Section 3.3.1), the client instance
MUST use as the resource value the entry in that array that matches
the resource location. An entry matches an HTTP resource location if
all of the following hold:
* The schemes are identical.
* The hosts are identical when compared case-insensitively, after
conversion of any internationalized host names to A-labels
[RFC5890].
* The ports are identical, after applying the default port for the
scheme wherever a port is not given explicitly.
* The path of the entry, with any trailing "/" removed, is either
identical to the path of the resource location or is followed in
the path of the resource location by a "/". That is, the entry's
path is a prefix of the resource location's path at a segment
boundary.
Any query or fragment part of the resource location is disregarded
for matching. An entry matches a non-HTTP resource host name if the
two are identical when compared case-insensitively, again after
conversion to A-labels. If more than one entry matches, the client
instance MUST use the one with the longest path.
For example, if the client instance wishes to connect to
https://caldav.example.com/.well-known/caldav and the metadata lists
["https://caldav.example.com", "https://carddav.example.com"], the
resource value is https://caldav.example.com. An entry of
Jenkins & Bucksch Expires 22 May 2027 [Page 20]
Internet-Draft OAuth for Native Clients November 2026
https://api.example.com does not match
https://api.example.com.attacker.net/jmap/session,
https://api.example.com:8443/jmap/session, or
https://api.example.com@attacker.net/, and an entry of
https://example.com/dav does not match https://example.com/davenport.
Matching MUST be performed on the parsed components of the URL and
not by comparing strings, as a plain prefix comparison would accept
each of these counterfeit URLs.
If no entry matches, the endpoint is not a protected resource of this
authorization server: the client instance MUST NOT include a resource
parameter for it, and MUST NOT send access tokens obtained from this
authorization server to it (see Section 7.1). If the client instance
cannot function without that endpoint, it MUST abort the flow and
inform the user.
If the metadata does not include the protected_resources property,
the client instance MUST use the resource location itself, with any
query or fragment component removed (see Section 2 of [RFC8707]), as
the resource value. In this case the client instance MUST also apply
the registrable domain rule in Section 7.1 before sending access
tokens to the endpoint.
Note that in this case the resource value names a specific endpoint
URL. However, Section 7.1 permits the client instance to send the
resulting access token to any host within the registrable domain of
the issuer identifier, for example one reached by following an HTTP
redirect during CalDAV or CardDAV service discovery. An
authorization server that supports Resource Indicators and issues
audience-restricted access tokens (see Section 4.10.2 of [RFC9700])
may therefore issue a token that the redirect target rejects, even
though the client instance has behaved correctly. Servers that
support Resource Indicators SHOULD avoid this by publishing
protected_resources, so that the client instance sends a value that
covers every host the token may legitimately be presented to. A
server that supports Resource Indicators but does not publish
protected_resources MUST ensure that a token issued for an endpoint
URL is accepted by any resource server to which that endpoint
redirects the client.
Note that Section 2 of [RFC8707] requires the resource value to be an
absolute URI, and Section 4 of [RFC9728] likewise requires entries of
protected_resources to be https URLs. This profile deviates from
both requirements for non-HTTP protocols, where the value is a bare
hostname. Endpoints for these protocols are not naturally identified
by a URI. URI schemes exist for some of these protocols, such as
imap [RFC5092] and pop [RFC2384], but they are not used here. These
schemes identify mailboxes or messages rather than servers, and do
Jenkins & Bucksch Expires 22 May 2027 [Page 21]
Internet-Draft OAuth for Native Clients November 2026
not distinguish the implicit-TLS and STARTTLS ports of the same
server. There is also no equivalent scheme for SMTP submission. The
hostname is used instead, as it is what the client instance MUST
present in the host attribute of the OAUTHBEARER SASL exchange
[RFC7628] (see Section 7.3). Servers implementing this profile MUST
accept a bare hostname as a resource value for such endpoints.
Server support for Resource Indicators is RECOMMENDED; servers that
do not support them will ignore these parameters and the flow will
still succeed. Servers that do support Resource Indicators MUST
verify that every requested resource value is a permitted location to
send access tokens to. A value is permitted if it identifies one of
the real resource endpoints associated with this authorization
server, or is an entry in the server's protected_resources list. If
any value is not permitted, the server MUST reject the request with
an invalid_target error, as defined in Section 2 of [RFC8707].
5.3. User-Agent Requirements
After constructing the authorization request URL, the client instance
MUST use platform-specific APIs to open it in an external user-agent.
It MUST NOT use an embedded user-agent (such as a web view) within
the application, as required by Section 8.12 of [RFC8252].
Typically, the external user-agent used is the default browser, that
is, the application configured for handling "http" and "https" scheme
URLs on the system. See Section 6 of [RFC8252] for a discussion of
best practices and alternatives, such as in-app browser tabs, which
are external user-agents that render within the application while
retaining the security properties of the browser. The client
instance MUST use a user-agent that supports session cookies,
JavaScript, and the Web Authentication API [WebAuthn], so that
authorization servers can rely on these being available.
Embedded user-agents are prohibited because they undermine much of
the security benefit of this profile. An embedded user-agent is
under the control of the client application, which can therefore
observe and modify everything the user enters, including their
password and any second factor. The user also has no way to verify
which site they are actually entering their credentials into. An
external user-agent, by contrast, shares the user's existing
authentication state and credential stores with the rest of the
system. This allows single sign-on, password managers, and origin-
bound authenticators such as passkeys [WebAuthn] to work, and allows
the browser's built-in phishing protections to apply. Users are also
better able to recognize and reason about a login page shown in their
familiar browser than one shown inside an arbitrary application.
Jenkins & Bucksch Expires 22 May 2027 [Page 22]
Internet-Draft OAuth for Native Clients November 2026
This restriction is a requirement on clients and is not reliably
enforceable by the authorization server, as an embedded user-agent
may be indistinguishable from an external one. Servers MAY use
heuristics (for example, the User-Agent header field) to detect and
refuse authorization from known embedded user-agents, as suggested in
Section 8.12 of [RFC8252], but the security of this profile does not
depend on them doing so. As discussed in Section 9, a malicious
native application could already present the user with a fake
browser, so this profile does not attempt to defend against a
malicious client; the requirement ensures that well-behaved clients
provide the security properties users expect.
5.4. Server Processing
The authorization server MUST verify that all of the parameters
defined in Section 5.1 are present, other than login_hint, which is
optional, and resource, which is not always included (see
Section 5.2). It MUST also verify that every parameter present
conforms to the restrictions in this document. A server that issues
the same client id for registrations with different redirect URIs,
for example a static client id, cannot meaningfully require the
redirect_uri to be identical to a registered URI; such a server MUST
instead verify that the redirect_uri satisfies the requirements in
Section 4.2. A request in which any parameter is included more than
once MUST be rejected, with the exception of the resource parameter,
which may be repeated as described in that section.
If verified, the authorization server will authenticate the user and
ask them if they wish to grant authorization to the client.
The authorization request may fail because the redirection URI is
missing, invalid, or mismatching, or because the client identifier is
missing or invalid. In these cases, the authorization server SHOULD
inform the user of the error, and MUST NOT automatically redirect the
user-agent to the invalid redirection URI. If the authorization
request fails for any other reason, the client instance will receive
an error response via the redirect_uri. This MUST include an error
query parameter with an appropriate error code, as defined in
Section 4.1.2.1 of [RFC6749]. The error response also includes the
state parameter and, as required by Section 2 of [RFC9207], the iss
parameter. The client instance MUST verify both as described in
Section 5.5 before acting on the error, and MUST ignore an error
response whose state does not match a request it has outstanding.
Jenkins & Bucksch Expires 22 May 2027 [Page 23]
Internet-Draft OAuth for Native Clients November 2026
5.5. Authorization Response
If authorization is successful, the client instance will receive a
response via the redirect_uri, which will include the following query
parameters:
code
The authorization code. This may be exchanged for the refresh
token. This code MUST expire, but MUST NOT expire less than 10
minutes after it is issued. This allows the client instance to
complete the exchange even on a poor network, or if the operating
system suspends the client instance before it can make the token
request. Section 4.1.2 of [RFC6749] recommends a maximum lifetime
of 10 minutes; a server choosing a longer lifetime deviates from
that recommendation. This is acceptable for this profile because
the code can only be exchanged by the holder of the PKCE code
verifier, and only once. It MUST NOT be used again once the
client instance has successfully exchanged it for a refresh token.
Doing so may cause the server to detect it as stolen and revoke
all associated tokens.
state
The value of the state parameter that was passed in with the
initial request.
iss
The issuer identifier of the authorization server.
The client instance MUST verify all of the following:
* The "iss" returned is identical to the "issuer" property in the
authorization server metadata. This is critical for protecting
against various mix-up attacks should a malicious OAuth metadata
object be fetched, as discussed in the security considerations.
* The state returned matches exactly the state it sent, to verify
that this request was indeed initiated by the client and not an
attacker.
Jenkins & Bucksch Expires 22 May 2027 [Page 24]
Internet-Draft OAuth for Native Clients November 2026
If the state returned does not match a request the client instance
has outstanding, the client instance MUST ignore the response, and
continue to wait for a response to its request. This prevents
another process on the device from disrupting the flow by sending a
bogus response. If the state matches but any other verification
fails, the client instance MUST abort the flow and not send the
authorization code anywhere. It MUST inform the user of what went
wrong and what they can do next. For a loopback redirect URI, this
is done by returning an HTML page in response to the redirect
request; for a private-use URI scheme the client instance is invoked
directly and displays the message itself.
6. Obtaining Tokens
6.1. Exchanging the Authorization Code
Following authorization, the client instance will obtain initial
refresh and access tokens by making a POST request to the
token_endpoint URL. The following parameters, other than those
marked as optional, MUST be present, using the "application/x-www-
form-urlencoded" format with a character encoding of UTF-8 in the
HTTP request entity-body:
client_id
The client id as returned in the registration.
redirect_uri
The redirect_uri parameter sent with the authorization request
from which the code was obtained.
grant_type
This MUST be "authorization_code".
code
The code returned via the redirect back from authorization.
code_verifier
The code_verifier generated for the authorization (the random
string generated in the authorization step, as per [RFC7636]).
The server MUST reject a request that omits this parameter, or
whose value does not verify against the code_challenge sent with
the authorization request, as specified in Section 4.6 of
[RFC7636]. An authorization code issued to a client registered
under this profile MUST NOT be exchangeable without it: PKCE is
the only protection against an authorization code intercepted via
a loopback or private-use URI scheme redirect.
Jenkins & Bucksch Expires 22 May 2027 [Page 25]
Internet-Draft OAuth for Native Clients November 2026
resource (optional)
One or more Resource Indicators, as described in Section 2.2 of
[RFC8707], restricting the access token to a subset of the
resources that were authorized. Each value MUST be one of the
resource values sent in the authorization request. If omitted,
the access token is issued for all of the authorized resources.
See Section 7.4 for when a client instance needs to use this.
The client instance MAY include additional parameters defined by
other OAuth extensions. The server MUST ignore any parameter it does
not recognize, as required by Section 3.2 of [RFC6749], and clients
MUST NOT depend on such parameters being understood for
interoperability. If using DPoP, the client instance MUST also set a
DPoP header in accordance with Section 5 of [RFC9449]. A client
instance using DPoP MUST support the authorization server-provided
nonce (Section 8 of [RFC9449]) and resource server-provided nonce
(Section 9 of [RFC9449]) mechanisms, retrying a request that fails
with a use_dpop_nonce error using the nonce supplied, as servers MAY
require a nonce in every proof.
6.2. Token Response
The server will verify the parameters and if successful, return a 200
OK response with a content type of application/json. The body will
be a JSON object with the following properties:
access_token
The access token used to authenticate API requests. Unless it is
DPoP-bound, this is a bearer token. It will be valid for a fixed,
limited time.
token_type
The type of the access token. This MUST be "Bearer", or "DPoP" if
the client is using DPoP ([RFC9449]). The value is case
insensitive (Section 5.1 of [RFC6749]), and clients MUST compare
it accordingly; servers commonly return "bearer".
expires_in
The lifetime in seconds of the access token. For example, the
value 3600 denotes that the access token will expire in one hour
from the time the response was generated. Servers MUST include
this property in every token response (it is only RECOMMENDED in
Section 5.1 of [RFC6749]), as clients rely on it to obtain a new
access token before the current one expires (see Section 6.3).
scope
Jenkins & Bucksch Expires 22 May 2027 [Page 26]
Internet-Draft OAuth for Native Clients November 2026
The space delimited set of scopes that this access token may use.
Servers MUST include this property in every token response, even
where it is identical to the set of scopes requested (in which
case it is OPTIONAL in Section 5.1 of [RFC6749]).
Note that this may be different from the set of scopes requested.
Servers MAY allow users to choose to authorize only a subset of
the requested scopes. Clients MUST check that the set of scopes
granted is sufficient for their needs.
refresh_token
The refresh token to use next time the client instance needs to
get a new access token. Servers MUST include this property in the
response to an authorization code grant; a client instance
following this profile cannot function without it. For its
presence in the response to a refresh token grant, see
Section 6.4.
If the request fails, the server MUST return an error response as
described in Section 5.2 of [RFC6749]. This MUST have a 400 Bad
Request status code, including for an invalid_client error: as
clients following this profile do not authenticate to the token
endpoint, the 401 Unauthorized status code that Section 5.2 of
[RFC6749] permits for that error does not apply. The response has a
content type of application/json, and a JSON object body with the
properties defined there. A client id that is no longer valid (see
Section 4.5) is reported with the invalid_client error code. An
authorization code or refresh token that is invalid, expired, or
revoked is reported with the invalid_grant error code.
6.3. Refreshing the Access Token
The client instance obtains its first access token, together with its
refresh token, by exchanging the authorization code as described in
Section 6.1. This section describes how it obtains every subsequent
access token, using the refresh token. It does not apply to the
first access token.
Clients SHOULD keep using an access token they have been issued until
it expires. The client instance knows when this will happen from the
expires_in property returned with the token. While the client
instance has an active need for the token (for example, open
connections it expects to re-establish), it SHOULD proactively obtain
a new access token shortly before the current one expires, rather
than waiting for a request to fail. A client instance with no such
need SHOULD NOT refresh merely to keep a token current. This is
particularly important for stateful protocols such as IMAP and SMTP,
where the token is needed at connection time and a round trip to the
Jenkins & Bucksch Expires 22 May 2027 [Page 27]
Internet-Draft OAuth for Native Clients November 2026
token endpoint would otherwise delay every reconnection. Clients
MUST nonetheless be prepared for an access token to be rejected at
any time (for HTTP-based protocols, with a 401 response), as the
server may invalidate it early, and MUST handle this by obtaining a
new one.
To obtain a new access token, the client instance makes a POST
request to the authorization server token endpoint. The following
parameters, other than those marked as optional, MUST be present,
using the "application/x-www-form-urlencoded" format with a character
encoding of UTF-8 in the HTTP request entity-body:
client_id
The client id as returned in the registration.
grant_type
This MUST be "refresh_token".
refresh_token
The most recent refresh token the client instance has received
(see Section 6.4).
resource (optional)
One or more Resource Indicators restricting the access token to a
subset of the authorized resources, with the same semantics as in
Section 6.1.
The success and failure responses are identical to those documented
in Section 6.2.
6.4. Refresh Token Rotation and Replay Protection
Because clients following this profile are public clients, the server
MUST protect against refresh token replay, using one of the two
methods required by Section 4.14.2 of [RFC9700]:
* Sender-constrained refresh tokens. If the client instance
presented a DPoP proof when the refresh token was issued, the
server binds the refresh token to the client instance's key
(Section 5 of [RFC9449]). In this case, the server MAY omit the
refresh_token property from a refresh response, or MAY return the
same refresh token again. The client instance then continues to
use the refresh token it already holds.
* Refresh token rotation. If the refresh token is not sender-
constrained, the server MUST return a new refresh token in every
refresh response.
Jenkins & Bucksch Expires 22 May 2027 [Page 28]
Internet-Draft OAuth for Native Clients November 2026
Whenever a refresh response contains a refresh token that differs
from the one the client instance holds, the client instance MUST
replace its stored refresh token with the new one. The client
instance MUST persist the new refresh token before making any use of
the access token returned in the same response.
Invalidating the previous refresh token as soon as a new one is
issued, as Section 4.14.2 of [RFC9700] specifies, causes a problem
for native clients. The response containing the new refresh token
may not reach the client instance: the connection may drop, or the
client instance may be suspended or terminated by the operating
system before it can persist the new token. The client instance then
holds only the previous refresh token. If that has been invalidated,
the client instance has lost its authorization, and the user has to
authorize it again.
To avoid this, when the server issues a new refresh token it SHOULD
NOT invalidate the previous refresh token immediately. Instead, it
SHOULD keep the previous refresh token valid until it has seen
evidence that the client instance received the response containing
the new one. Such evidence is any use of the tokens issued in that
response, for example the new access token being presented to a
resource server, or the new refresh token being presented at the
token endpoint. An authorization server may not be able to observe
the use of access tokens, for example when access tokens are self-
contained and validated locally by the resource server, or are
presented to a separate IMAP or SMTP server. Use of the new refresh
token is therefore the evidence that every server can rely on. A
server that can observe use of the new access token can invalidate
the previous refresh token sooner.
While the previous refresh token remains valid, the server MUST
respond to a request presenting it as follows:
* The response MUST contain the same new refresh token that was
issued in the original response. The server MUST NOT issue a
further new refresh token. To allow this, the server needs to be
able to reproduce the new refresh token, for example by storing it
in encrypted form, or by deriving it deterministically from the
original request.
Jenkins & Bucksch Expires 22 May 2027 [Page 29]
Internet-Draft OAuth for Native Clients November 2026
* The response MUST contain either the same access token as the
original response, with expires_in adjusted for the time elapsed,
or a newly issued access token. The server MUST NOT return the
same access token unless the request's resource parameters match
those of the original request, the request includes a DPoP proof
for the same key as the original request (or neither includes a
DPoP proof), and at least 10 minutes of the access token's
lifetime remain (see Section 6.5).
Returning the same new refresh token is essential to detecting a
stolen refresh token. Suppose an attacker obtains a copy of the
previous refresh token and uses it while it is still valid. If the
server issued the attacker a further new refresh token, the attacker
would have a chain of refresh tokens independent of the client
instance's chain, and the server would have no way to detect it.
Because the server instead returns the same new refresh token, the
attacker and the client instance hold the same token, and a
subsequent rotation reveals the duplicate, as described in the next
paragraph.
Once the server has seen evidence that the client instance received
the new tokens, any later use of the previous refresh token can only
come from a copy that has been leaked or stolen. From that point on,
the previous refresh token is a superseded refresh token, and the
server MUST treat it as invalid. A server that invalidates the
previous refresh token immediately treats it as superseded from the
moment the new refresh token is issued. The server MUST be able to
recognize every superseded refresh token of an authorization for as
long as the authorization remains valid, for example by recording an
identifier for the authorization in each refresh token it issues. If
a superseded refresh token is presented, the server MUST reject the
request with an invalid_grant error, and MUST revoke the entire
authorization, including the current refresh token and all associated
access tokens. This applies whether or not the refresh token is
sender-constrained. The server MUST check whether a refresh token
has been superseded before validating any other parameters of the
request. If a superseded refresh token is presented at the
revocation endpoint [RFC7009], the server MUST revoke the entire
authorization.
The server MUST process requests relating to the same authorization
atomically, so that concurrent requests cannot result in more than
one new refresh token being issued, or in a request presenting the
previous refresh token being answered after it has been superseded.
If a refresh request fails without the client instance receiving a
valid token response or error response, for example because of a
network failure, a timeout, or an HTTP 5xx status code, the client
Jenkins & Bucksch Expires 22 May 2027 [Page 30]
Internet-Draft OAuth for Native Clients November 2026
instance SHOULD retry the request with the same refresh token. It
MUST NOT discard its refresh token unless it receives an
invalid_grant or invalid_client error response.
Keeping the previous refresh token valid deviates from Section 4.14.2
of [RFC9700], which invalidates the previous refresh token as soon as
the new one is issued. The deviation is limited to the period
between issuance and the first evidence that the client instance
received the new tokens. During this period, the previous refresh
token can obtain nothing beyond what the original response already
granted. The deviation is necessary so that a client instance that
did not receive the response can recover without user interaction.
The security implications, including the risk that an attacker who
presents a copy of the previous refresh token at the right time can
keep access indefinitely, are discussed in Section 9.
The client instance MUST ensure that only one token request is in
flight at a time for a given refresh token, for example by
serializing refresh operations across all connections that share the
authorization. Concurrent refreshes would otherwise race, with one
of them presenting a refresh token that has just been superseded.
If a user has multiple devices with the same client software
installed, each instance of the client MUST obtain separate
authorization. A refresh token MUST NOT be shared between devices.
6.5. Token Lifetimes and Revocation
Access tokens MUST have a lifetime of at least 10 minutes, and SHOULD
have a lifetime of at least 1 hour.
The hard minimum exists so that a client instance can rely on an
access token it has just obtained lasting long enough for a single
operation. This matters especially on poor networks, where the
client instance may have to retry several times before it can connect
to the resource server. It also bounds the rate at which a client
instance must contact the token endpoint, making the client more
efficient with its network usage.
Jenkins & Bucksch Expires 22 May 2027 [Page 31]
Internet-Draft OAuth for Native Clients November 2026
The recommended lifetime of one hour further reduces load on the
token endpoint. More importantly, it loosens the coupling between
the authorization server and the resource servers. With hour-long
tokens, a brief outage of the authorization server, or a period on a
network where it is unreachable, is invisible to the user. The
trade-off is that a longer lifetime extends the window during which a
leaked bearer token can be misused. Servers that consider this
window too long are encouraged to support DPoP ([RFC9449]) rather
than shorten the lifetime below one hour. DPoP prevents a stolen
access token from being used by anyone other than the client instance
it was issued to.
Refresh tokens SHOULD NOT expire, unless the user explicitly revokes
the token or it has been unused for a considerable period of time (at
least 30 days).
For stateful connection-based protocols such as SMTP and IMAP the
access token is only presented on first connection. Expiry of the
access token SHOULD NOT affect current IMAP/SMTP etc. sessions that
have already authenticated. However, if the server chooses to force
reauthorization, it MUST do so by unilaterally closing the
connection. There is no way to reauthenticate an existing session in
these protocols, and all clients already have to be able to reconnect
after a dropped connection.
When a refresh token is revoked, the deployment MUST close any
existing stateful connections, such as IMAP or SMTP sessions, that
were authenticated using access tokens issued under the same
authorization. A refresh token may be revoked, for example, because
the user has revoked the client's authorization, or because the token
has been detected as leaked.
A client instance cannot detect that its refresh token has been
revoked until it next attempts to use it. A client instance detects
revocation by receiving an invalid_grant error from the token
endpoint, or an invalid_client error indicating that the client id is
no longer valid (see Section 4.5). Once it does so, the client
instance MUST discard the refresh token and any associated access
tokens, and MUST close any stateful connections it still has open
that were authenticated with them. It MUST then obtain new
authorization before reconnecting (see Section 4.5).
7. Using Access Tokens
Jenkins & Bucksch Expires 22 May 2027 [Page 32]
Internet-Draft OAuth for Native Clients November 2026
7.1. Permitted Resource Servers
An access token obtained from an authorization server MUST only be
sent to a resource server that the client instance has determined to
be associated with that authorization server, as described in this
section. This protects against a counterfeit resource server that
has been named in autoconfiguration data or protected resource
metadata under the attacker's control (see Section 4.9.1 of [RFC9700]
and Section 9).
The client instance MUST make this determination for every request
URL to which it sends an access token. This includes any URL reached
by following an HTTP redirect, such as those commonly used in CalDAV
and CardDAV service discovery: the determination is made against the
URL actually being requested, not only the endpoint URL the client
instance started from. A client instance MUST NOT send an access
token to a URL for which the determination fails. If the client
instance cannot function without that resource server, it MUST abort
and inform the user.
A resource server is permitted if and only if at least one of the
following applies:
* The authorization server metadata includes the protected_resources
property (see Section 3.3.1), and an entry in the list matches the
request URL (for HTTP-based protocols) or the host name (for non-
HTTP protocols), using the matching rules given in Section 5.2.
* The authorization server metadata does not include the
protected_resources property, the request URL uses the https
scheme (for HTTP-based protocols), and the resource server's host
name has the same registrable domain as the host of the
authorization server issuer identifier. For HTTP-based protocols
the host name is the host component of the request URL; for non-
HTTP protocols it is the host name the client instance connects
to.
* The request URL is a service-supplied endpoint URL, as described
in Section 7.2.
Jenkins & Bucksch Expires 22 May 2027 [Page 33]
Internet-Draft OAuth for Native Clients November 2026
The registrable domain of a host name is its public suffix plus the
DNS label immediately preceding that suffix, where the public suffix
is determined using the Public Suffix List [PSL]. For example, the
registrable domain of imap.example.com is example.com, and the
registrable domain of auth.example.co.uk is example.co.uk. Host
names MUST be compared case-insensitively, and internationalized host
names MUST be converted to A-labels [RFC5890] before comparison. A
host that is an IP address literal, or that has no registrable domain
(for example, a single-label host name, or a host name that is itself
a public suffix), is never permitted under this rule.
The registrable domain rule allows deployments that host their
authorization server and resource servers within a single domain, for
example auth.example.com and imap.example.com, to be secure without
further configuration. Some deployments have resource servers that
are not all within the registrable domain of the issuer identifier.
These include providers that use a separate identity provider domain,
and multi-tenant authorization servers whose issuer identifier
includes a path component. Such deployments MUST publish
protected_resources (see Section 3.3.1), as clients following this
profile will otherwise refuse to use their resource servers. This
does not apply to resource servers that clients reach only through
service-supplied endpoint URLs (see Section 7.2).
7.2. Service-Supplied Endpoints
Some protocols allow a resource server to tell the client where other
endpoints of the same service are located, and these may be on hosts
that are not otherwise permitted. For example, a JMAP Session object
may give an apiUrl on a different domain to the session resource, to
allow load balancing or regional deployment. Requiring every such
host to be listed in protected_resources in advance would be
impractical.
A URL is a service-supplied endpoint URL if all of the following
apply:
* The client instance obtained it from one of the fields listed
below, in a response to a request that was authenticated with an
access token issued under the same authorization, that is, for the
same account, as the access token the client instance intends to
send to it.
* That request was made to a resource server permitted under
Section 7.1. This includes a resource server that is permitted
because its URL is itself a service-supplied endpoint URL.
Jenkins & Bucksch Expires 22 May 2027 [Page 34]
Internet-Draft OAuth for Native Clients November 2026
* The URL uses the https scheme, or the wss scheme for a WebSocket
endpoint.
The fields are:
* For JMAP [RFC8620]: the apiUrl, downloadUrl, uploadUrl, and
eventSourceUrl properties of the Session object. Also, any URL in
the Session object that the specification of a JMAP capability
defines as an endpoint of the service that the client
authenticates to, such as the url property of the
urn:ietf:params:jmap:websocket capability [RFC8887].
The downloadUrl, uploadUrl, and eventSourceUrl properties are URI
templates [RFC6570]. The determination is made against the
expanded URL. If any part of the template before the path, that
is, its scheme, userinfo, host, or port, contains a template
expression, the URL is not a service-supplied endpoint URL.
* For CalDAV [RFC4791] and CardDAV [RFC6352]: the DAV:current-user-
principal property [RFC5397], the CALDAV:calendar-home-set and
CARDDAV:addressbook-home-set properties, and the CALDAV:schedule-
inbox-URL and CALDAV:schedule-outbox-URL properties [RFC6638].
Also, the DAV:href values in a multistatus response [RFC4918] to a
request on a calendar home or address book home identified in this
way, or on a collection within one, that identify collections or
resources within that home. A URL is within a home if it has the
same scheme, host, and port as the home's URL, and the home's
path, with any trailing "/" removed, is either identical to the
URL's path or is followed in the URL's path by a "/".
Other specifications MAY define further fields as service-supplied
endpoint URLs, for the protocols they define or extend. A field
qualifies only if the specification defines it as identifying an
endpoint of the same service, for the same account, which the client
authenticates to with the same credentials.
No other URL is a service-supplied endpoint URL, even if it was
obtained in an authenticated response from a permitted resource
server. A response from a legitimate server can contain URLs that
point to third parties. For example, the source property of a
subscribed calendar, as returned by some CalDAV servers, identifies
an external calendar feed. A client instance MUST NOT send an access
token to such a URL unless the URL is permitted on its own under
Section 7.1. Implementations that attach credentials to every
request made on behalf of an account need to take particular care
here: whether to include an access token has to be decided for each
request, based on its URL.
Jenkins & Bucksch Expires 22 May 2027 [Page 35]
Internet-Draft OAuth for Native Clients November 2026
A redirect from a service-supplied endpoint URL does not extend this
permission to the redirect target. As for any other redirect, the
client instance makes the determination again for the target URL,
which is permitted only if it matches an entry in protected_resources
or, where that property is absent, shares the registrable domain of
the issuer identifier.
The permission applies only to the URL obtained from the field, or to
URLs expanded from it if it is a URI template, or, for a calendar
home or address book home, to URLs within that home. It does not
extend to other URLs on the same host. Permission based on a field
lasts only while the client instance continues to use the value it
obtained. If the value changes, for example because the client
instance fetches the JMAP Session object again, the new value
replaces the old one.
Deployments MUST ensure that an access token accepted by a resource
server is also accepted at every service-supplied endpoint URL
obtained from that resource server's responses. In particular, an
authorization server that issues audience-restricted access tokens
(see Section 4.10.2 of [RFC9700]) needs to take these endpoints into
account.
This does not weaken the protection described in Section 7.1. That
protection prevents an attacker who controls autoconfiguration data
or protected resource metadata from naming a counterfeit resource
server. A resource server that has already been determined to be
associated with the authorization server already receives the access
token, so trusting it to name other endpoints of the same service
gives it no further access. An attacker who does not control such a
server cannot alter its responses, which are protected by TLS.
7.3. Authenticating to Resource Servers
The client instance is now authenticated. It can connect to the
resource servers permitted under Section 7.1. For HTTP-based
protocols, a bearer access token is sent using the Bearer scheme
[RFC6750], by setting an Authorization header with the value Bearer
{access_token} (where {access_token} is replaced with the value of
the access_token). A DPoP-bound access token, that is, one issued
with a token_type of "DPoP", is instead sent using the DPoP
authentication scheme together with a DPoP proof, as described in
Section 7 of [RFC9449].
For protocols that use SASL authentication, such as IMAP, POP, and
SMTP, the access token is used in accordance with the OAUTHBEARER
mechanism defined in [RFC7628]. Servers MUST NOT require the
username associated with the resource (the "authzid") be included in
Jenkins & Bucksch Expires 22 May 2027 [Page 36]
Internet-Draft OAuth for Native Clients November 2026
the GS2 header. The client instance MUST include the host attribute
in its initial client response (Section 3.1 of [RFC7628]), set to the
host name it connected to, and SHOULD include the port attribute.
[RFC7628] makes these attributes optional for bearer tokens. This
profile requires host because it is the value the client instance
used as the Resource Indicator for the endpoint (see Section 5.2).
This allows a server to check that the access token was issued for
the host it is being presented to.
7.4. DPoP and Non-HTTP Protocols
DPoP [RFC9449] is only defined for HTTP. The proof JWT (Section 4.2
of [RFC9449]) is bound to the HTTP method and URI of the request it
protects and is carried in an HTTP header field, and the OAUTHBEARER
SASL mechanism [RFC7628] has no means of carrying such a proof. A
DPoP-bound access token therefore cannot be used to authenticate to
an IMAP, POP, or SMTP server. Sender-constraining access tokens for
SASL-based protocols would require a new SASL mechanism, or an
extension to OAUTHBEARER, together with a means for the resource
server to verify the proof. That is out of scope for this document.
A client instance that uses only HTTP-based protocols and wishes to
use DPoP SHOULD register with dpop_bound_access_tokens set to true
(see Section 4.1), include a DPoP proof in every token request, and
use the resulting DPoP-bound access tokens as described in Section 7
of [RFC9449].
A client instance that uses non-HTTP protocols, whether exclusively
or alongside HTTP-based protocols, has two choices. The simplest is
not to use DPoP at all, in which case all tokens are bearer tokens.
Alternatively, it MAY use DPoP for the token endpoint and for HTTP-
based resources while still obtaining bearer tokens for non-HTTP
resources, as follows:
* The client instance MUST NOT set dpop_bound_access_tokens to true
when registering, as the server would then be required to issue
only DPoP-bound access tokens.
* The client instance includes a DPoP proof in every token request.
As required by Section 5 of [RFC9449], the server binds the
refresh token to the client instance's key, so the refresh token
is sender-constrained even though some of the access tokens
obtained with it are not.
* The client instance obtains separate access tokens for HTTP and
non-HTTP resources by including resource parameters in its token
requests (see Section 6.1 and Section 6.3). One request lists
only its HTTP-based resources, and a second lists only its non-
Jenkins & Bucksch Expires 22 May 2027 [Page 37]
Internet-Draft OAuth for Native Clients November 2026
HTTP resources (that is, hostnames, see Section 5.2). The initial
token request exchanging the authorization code can be made for
either set, and the other set is then obtained by a refresh
request.
* Consider a token request that includes a valid DPoP proof, and in
which every resource parameter is a hostname for a non-HTTP
resource. A server that supports both DPoP and Resource
Indicators MUST respond to such a request with an access token
that is not bound to the DPoP key, with a token_type of "Bearer".
For any other token request that includes a DPoP proof, the server
issues a DPoP-bound access token with a token_type of "DPoP", as
normal. Servers that support DPoP SHOULD therefore also support
Resource Indicators, so that client instances using non-HTTP
protocols are not prevented from using DPoP.
* The client instance MUST check the token_type of each response and
use the token accordingly: a "DPoP" token with the DPoP
authentication scheme for HTTP requests, and a "Bearer" token with
the Bearer scheme or OAUTHBEARER. If the client instance receives
a "DPoP" token in response to a request that listed only non-HTTP
resources, the server does not support this arrangement (for
example, because it does not support Resource Indicators and
ignored the parameters). The client instance MUST NOT attempt to
use that token with a non-HTTP server, and MUST obtain a new
authorization without using DPoP if it is to continue.
A client instance can avoid the last failure case in most deployments
by only attempting this arrangement when the authorization server
metadata includes protected_resources, which indicates the server
acts on Resource Indicators.
8. Scopes
To work interoperably, clients and servers must use a common set of
scopes for access. This document creates a new IANA registry for
such scopes (see Section 10.1), and registers scopes to cover IMAP,
SMTP, POP, ManageSieve, CardDAV, CalDAV, and JMAP.
Registration of a scope in that registry does not by itself impose
any requirement on OAuth implementations in general (see
Section 10.1). This profile, however, does require support: a server
implementing this profile MUST support each of the scopes registered
by this document (Section 10.1.5) whose definition covers a protocol
or type of data that the server offers. For example, a server that
offers IMAP and SMTP MUST support urn:ietf:params:oauth:scope:mail,
and a server that offers CalDAV MUST support
urn:ietf:params:oauth:scope:calendars. Supporting a scope means
Jenkins & Bucksch Expires 22 May 2027 [Page 38]
Internet-Draft OAuth for Native Clients November 2026
advertising it in the scopes_supported metadata property, accepting
it in registration and authorization requests, and granting the
access described in its registration when it is authorized.
The scopes registered by this document grant access to a type of
data, such as the user's email, and not to particular protocols. A
client granted a scope may use any of the protocols listed for it
that the server supports, whether or not the user has used that
protocol before. Which of these protocols a client actually uses is
a matter between the client and the user, and is not part of
authorization. Separate scopes for individual protocols are not
defined, because the protocols covered by each scope give access to
the same data, so restricting a token to one of them would not
meaningfully limit what the client can access.
Servers MAY additionally support other scopes, for example finer-
grained or vendor-specific scopes, but clients following this profile
can only rely on the registered scopes being available.
9. Security Considerations
This profile mandates best practices for OAuth with native clients,
as defined in [RFC8252]. A thorough discussion of the security
considerations generally applicable to OAuth is out of scope for this
document. It can be found in [RFC6819], in the OAuth 2.0 Security
Best Current Practice [RFC9700] (BCP 240), and in the security
considerations (Section 10) of [RFC6749].
Implementers are encouraged to read all of the above documents for a
more thorough consideration of the specific threats and mitigations
with OAuth.
The choices made for this profile are intended to mitigate as far as
possible the inherent risks that come from allowing arbitrary clients
to talk to arbitrary servers.
The key restriction of this profile is that the redirect_uri MUST be
something only a native client can access. If the user has
downloaded and run a malicious native app, it could already
undetectably spoof the user's browser to phish them, or, in
unsandboxed environments, install malware. Supporting the OAuth flow
from an unknown client therefore does not increase the risk. Indeed,
it is more secure than the current alternative, which is legitimate
clients storing the user's password. This is also why claimed
"https" scheme redirect URIs (Section 7.2 of [RFC8252]) are excluded.
Although they are the most secure redirect option on platforms that
support them, an authorization server has no way to tell one from an
ordinary web URL, so permitting them would permit web-based clients.
Jenkins & Bucksch Expires 22 May 2027 [Page 39]
Internet-Draft OAuth for Native Clients November 2026
Access tokens, refresh tokens, and authorization codes are bearer
credentials: anyone who obtains one can use it. Clients MUST only
send them over connections secured with TLS, and MUST verify the
server's certificate as described in [RFC9525]. This applies to the
token endpoint, to HTTP-based resource servers as required by
Section 5.3 of [RFC6750], and to protocols using SASL. For IMAP,
POP, and SMTP, the client MUST negotiate TLS (either Implicit TLS or
STARTTLS, see [RFC8314]) before sending the OAUTHBEARER
authentication exchange. Servers MUST NOT accept access tokens over
connections that are not protected by TLS. The one exception is the
redirect back to a loopback redirect URI (Section 4.2), which uses
the "http" scheme. This carries only the authorization code, and the
connection never leaves the user's device. The code is additionally
protected by PKCE, so it is useless to anyone other than the client
instance that holds the corresponding code verifier.
The dynamic registration part of this document is not a security
component, as there is no way to verify any of the data. The data in
the registration may be shown to the user as part of the
authorization flow, which may help an attacker with phishing.
However, as noted above, the redirect_uri can only be used by a
native app, which could already phish the user. On the other hand,
the registration gives the server more information to detect
suspicious behavior, which can help it to detect compromised users
and devices more easily.
All metadata supplied in a dynamic client registration is attacker-
controlled from the authorization server's point of view. The
client_name, client_uri, logo_uri, tos_uri, and policy_uri values MAY
be shown to the user, but the authorization server MUST treat them as
untrusted content. The authorization server MUST escape them
appropriately when rendering them. It MUST NOT fetch logo_uri, or
any other supplied URL, from the server side without the protections
appropriate to fetching an untrusted URL, since such a fetch could
otherwise be used to reach resources on the server's internal
network. Any such URL may also point at malicious content, as
discussed in Section 5 of [RFC7591]. A logo loaded by the user's
browser additionally discloses the user's IP address, and the fact
that an authorization is taking place, to whoever controls the URL.
Because the identity of the client cannot be verified, the
authorization server SHOULD make clear on the consent page that the
client is unverified, and SHOULD display the requested scopes in
plain language. It MUST NOT present the registration metadata in a
way that suggests it has been vetted. Servers that prefer not to
display unverified metadata MAY show only the requested scopes and a
generic description of the client.
Jenkins & Bucksch Expires 22 May 2027 [Page 40]
Internet-Draft OAuth for Native Clients November 2026
For the same reason, a client id does not identify a particular piece
of client software. A malicious application can submit the same
registration as a legitimate one and may be given the same client id,
and a server that returns a static client id gives every client the
same one. The authorization server therefore SHOULD NOT process an
authorization request under this profile without user interaction, on
the basis that the user has previously authorized the same client id
(see Section 8.6 of [RFC8252]).
Refresh tokens are long-lived credentials, and DPoP private keys are
equivalent in value to the tokens they protect. Client instances
SHOULD store both in the most secure storage the platform provides,
such as an operating system keychain or keystore, using hardware-
backed storage where available. Client instances MUST NOT write them
to logs. Where the platform offers protected storage, client
instances also MUST NOT write them to storage accessible to other
applications. Access tokens SHOULD be handled the same way, but MAY
be held only in memory. When the user removes an account from the
client, or the client is being uninstalled, the client instance
SHOULD revoke its refresh token via the revocation_endpoint, if the
server advertises one. This allows the server to discard the
authorization immediately, rather than waiting for the token to
expire through inactivity.
Keeping the previous refresh token valid until the client instance is
seen to have received the new one (Section 6.4) allows a client
instance to recover from a lost refresh response, but leaves a
residual risk when refresh tokens are not sender-constrained. During
this period, the server cannot distinguish a legitimate client
instance retrying after a lost response from an attacker presenting a
copy of the previous refresh token. Such an attacker obtains the
same new refresh token as the client instance, and an access token.
Jenkins & Bucksch Expires 22 May 2027 [Page 41]
Internet-Draft OAuth for Native Clients November 2026
Reuse is only detected when a refresh token is presented after it has
been superseded. An attacker that times its requests correctly can
therefore avoid detection indefinitely. At each rotation, the
attacker presents the same refresh token as the client instance,
either after the client instance's request, or before it. Either
way, it receives the same new refresh token as the client instance,
and so is able to repeat this at the next rotation. If the attacker
refreshes first, it must not use the new access token or refresh
token until the client instance has also presented the previous
refresh token, as this would supersede it and cause the client
instance's request to reveal the reuse. Neither the attacker nor the
client instance ever presents a superseded refresh token, so the
reuse is never detected, and the attacker keeps access for as long as
the authorization remains valid. The attacker needs no further
access to the client instance's storage after obtaining the initial
copy of the refresh token.
Refreshing before the client instance makes the attack considerably
easier. The attacker does not need to observe when the client
instance refreshes, or to make its request in the short time between
the client instance's request and its first use of the new tokens.
It only needs to refresh at some point before the client instance
does, and then wait until the client instance has probably refreshed
before using the tokens it obtained. Clients generally refresh
shortly before the current access token expires (see Section 6.3),
and the token response tells the attacker when that is. Ending the
period at the first use of the new access token therefore does not
prevent the attack, although it does stop an attacker that refreshes
after the client instance from doing so other than in the brief
interval before the client instance uses its new access token.
Servers SHOULD nonetheless end the period at the first use of the new
access token wherever they are able to observe it.
A legitimate client instance only presents the previous refresh token
a second time after a lost response, which is rare. With an attacker
following this strategy, the same refresh token is presented twice at
every rotation, by whichever of the attacker and the client instance
makes its request second. A server SHOULD therefore treat repeated
presentations of the previous refresh token, over successive
rotations of the same authorization, as an indication that the
refresh token has been leaked or stolen, and revoke the
authorization. It MAY also take into account other differences
between two requests presenting the same refresh token, such as the
network address it came from.
Refresh token rotation also has an inherent limitation: an attacker
that uses a stolen refresh token before the client instance next
refreshes has access until that refresh, when the reuse is detected
Jenkins & Bucksch Expires 22 May 2027 [Page 42]
Internet-Draft OAuth for Native Clients November 2026
and the authorization revoked. A client instance that is used only
occasionally may not refresh for some time, and if the client
instance never refreshes again, the reuse is never detected.
Revoking a superseded refresh token at the revocation endpoint
revokes the entire authorization (see Section 6.4), so a client
instance that revokes its refresh token when an account is removed
also ends any access an attacker has obtained.
DPoP [RFC9449] addresses these limitations by binding the refresh
token to the client instance's key, so that a copy of the refresh
token alone is of no use to an attacker. This replaces detection
with prevention, and is only as strong as the protection of the DPoP
private key: it is fully effective only where the key cannot be
extracted from the device, for example where it is held in hardware-
backed storage. It also protects only client instances that use
DPoP, and this profile does not allow a server to require it.
Servers that consider these limitations unacceptable SHOULD support
DPoP. Client instances are encouraged to use DPoP where the server
supports it, including client instances that use non-HTTP protocols,
which can do so using the arrangement described in Section 7.4.
Both kinds of redirect URI permitted by this profile can be claimed
by software other than the client instance. Another application on
the device may register the same private-use URI scheme (Section 8.1
of [RFC8252]), and another process may bind the loopback port the
client instance intends to use before it does (Section 8.3 of
[RFC8252]). In either case the authorization code may be delivered
to the wrong recipient. This profile mitigates this in two ways.
The code is useless without the PKCE code verifier, which never
leaves the client instance, so an intercepted code cannot be
exchanged (Section 1 of [RFC7636]). The state parameter binds a
response to a request the client instance made, so an attacker cannot
inject a code of their own into the client instance's flow
(Section 4.7 of [RFC9700]). Client instances MUST bind a loopback
listener to the loopback interface only, MUST accept at most one
authorization response per listener whose state matches the request,
and MUST close the listener once such a response has been received or
the flow abandoned. Responses whose state does not match are
ignored, as described in Section 5.5.
The issuer is expected to be autodetected from the user's email
address. A threat scenario that must be considered is the user
making a small typo in the domain (especially for a common email
service), and an attacker controlling this domain. In this scenario
the client instance will fetch the OAuth metadata from the attacker's
server, and has no way to know it is not the real server the user
wishes to connect to. This leads to a number of threats:
Jenkins & Bucksch Expires 22 May 2027 [Page 43]
Internet-Draft OAuth for Native Clients November 2026
1. The attacker defines a malicious authorization_endpoint under
their control. They attempt to phish the user's credentials with
this. The requirements of this document cannot specifically
mitigate this. However, requiring origin-bound authentication,
such as passkeys [WebAuthn], will mitigate it. Most browsers
also have a block list of known phishing sites, which can help.
2. The attacker publishes their own authorization server metadata,
copying the real authorization_endpoint and token_endpoint values
but naming their own resource servers. This is a mix-up attack
(Section 4.4 of [RFC9700]) and is protected against by the issuer
identifier check. The authorization response will include an iss
parameter carrying the legitimate issuer identifier. However,
the issuer property of the attacker's metadata must name the
attacker's own domain. If it did not, the client instance would
have aborted after fetching the metadata, as the property would
not match the identifier from which the metadata URL was derived.
The two therefore differ, and a client instance following this
specification will abort the flow and not send the authorization
code to the token endpoint.
3. The attacker publishes no authorization server metadata of their
own. Instead, the autoconfiguration data or protected resource
metadata under their control names the real authorization
server's issuer identifier alongside the attacker's own resource
servers. The client instance fetches the genuine metadata, and
the issuer property matches. The user authenticates and grants
consent at the genuine authorization server, and the iss
parameter in the authorization response matches. Every check in
the flow passes, because nothing has been mixed up: the client
instance then presents a valid access token to the attacker's
resource server, and the attacker replays it against the real
one. This is the counterfeit resource server attack described in
Section 4.9.1 of [RFC9700], and the issuer identifier check
offers no protection against it.
The protection is the rule in Section 7.1: the authorization
server vouches for its resource servers, either explicitly by
publishing protected_resources, or implicitly through the
resource servers sharing the registrable domain of the issuer
identifier. In the example above, the attacker's host is under
the mistyped domain while the issuer identifier is under the
provider's domain, so the client instance refuses to send the
token. Servers that support Resource Indicators [RFC8707] add a
second, server-side layer: the client instance sends a resource
value for every resource server it intends to use, and the
authorization server rejects the request if any is not one of its
own. Sender-constrained access tokens ([RFC9449]) further
Jenkins & Bucksch Expires 22 May 2027 [Page 44]
Internet-Draft OAuth for Native Clients November 2026
prevent a captured HTTP access token from being replayed, but
offer no protection for non-HTTP protocols, so they are not a
substitute for the rule above.
The registrable domain rule has two limitations. First, it
relies on the Public Suffix List [PSL], which is maintained
outside the IETF and changes over time; a client instance with a
stale copy may classify a host differently from an up-to-date
one. Clients SHOULD keep their copy current and MUST fail closed
where a host cannot be classified. Second, an attacker that
controls any host within the registrable domain of the issuer
identifier (for example, on a shared hosting platform or under an
institution's domain) is not excluded by it. Such an attacker
must also control the autoconfiguration for the domain the user
entered, so the exposure is narrow. Nonetheless, it is common
for a domain not to be under the close control of a single
operator. For example, a university or other large organization
may allow departments, staff, students, or external service
providers to create host names and run their own servers within
its domain. Some of those servers may be less carefully managed
than the authorization server. Any deployment that cannot vouch
for every host within the registrable domain of its issuer
identifier SHOULD publish protected_resources to close this gap.
4. The attacker uses the real authorization_endpoint value and the
real resource servers in its metadata, but uses their own
token_endpoint. The issuer identifier check described in item 2
will also protect against this.
This specification allows clients to fall back to the OpenID Connect
Discovery metadata path if the RFC 8414 metadata path fails.
Implementers should be aware that these two paths have different
security properties when the issuer identifier contains a path
component. The RFC 8414 path inserts the well-known component at the
host root (e.g., https://auth.example.com/.well-known/oauth-
authorization-server/acmeinc), meaning only an entity with control
over the host can serve this document. The OpenID Connect Discovery
path appends the well-known component to the issuer (e.g.,
https://auth.example.com/acmeinc/.well-known/openid-configuration),
meaning any entity that controls the path can serve this document.
In multi-tenant environments where different entities control
different paths on the same host, the OpenID Connect Discovery
fallback allows a tenant to serve their own metadata without host-
level control. The issuer identifier verification remains the
primary defense against mix-up attacks in all cases. However,
operators of shared hosts should be aware that the RFC 8414 path
provides an additional layer of host-level vetting that the OpenID
Connect Discovery path does not.
Jenkins & Bucksch Expires 22 May 2027 [Page 45]
Internet-Draft OAuth for Native Clients November 2026
10. IANA Considerations
10.1. Interoperable OAuth Scopes Registry
IANA is requested to add a new registry called "Interoperable OAuth
Scopes" to the "OAuth Parameters" registry group
[IANA.OAuth.Parameters]. The registry records OAuth scope values
that have a standardized, interoperable meaning, such that a client
and a server with no pre-existing relationship can agree on the
access that is granted by a scope. Each scope provides specific
access rights to protected resources, and the registry records a
reference to the specification that defines those rights.
10.1.1. Applicability of Registered Scopes
Registration of a scope in this registry does not, by itself, impose
any requirement on OAuth authorization servers, resource servers, or
clients in general. An OAuth implementation is not required to
recognize, support, or grant any scope in this registry merely
because it is registered. In this respect the registry is a
coordination mechanism, ensuring a given scope value has a single
well-defined meaning wherever it is used, rather than a statement of
what OAuth implementations must support.
Support for a registered scope is required only where a profile or
other specification that references this registry mandates it. Such
a specification MUST clearly identify which implementations are
required to support which scopes. This document is one such profile:
the scopes that servers implementing this profile MUST support are
specified in Section 8. Other profiles MAY reference scopes in this
registry and define their own support requirements, and the same
scope MAY be required by more than one profile.
10.1.2. Scope Naming Conventions
Each scope value can be registered only once. Scope names in this
registry are case sensitive, but a name MUST NOT match another
registered name in a case-insensitive manner unless the designated
experts state that there is a compelling reason to allow an
exception. These rules apply to all registrations, whether the value
is a URN or an unstructured string.
A newly defined scope registered in this registry MUST be a URN in
the urn:ietf:params:oauth:scope: sub-namespace of the OAuth URN
namespace [RFC6755], of the form urn:ietf:params:oauth:scope:<name>,
for example urn:ietf:params:oauth:scope:mail. The <name> component
SHOULD be a short, lowercase, descriptive identifier for the class of
data or resources to which the scope grants access. Using this
Jenkins & Bucksch Expires 22 May 2027 [Page 46]
Internet-Draft OAuth for Native Clients November 2026
namespace guarantees the value cannot collide with scope strings
defined elsewhere, and makes clear to implementers that the value has
a standardized meaning. Any such URN MUST also be registered in the
IANA "OAuth URI" registry [IANA.OAuth.Parameters] established by
[RFC6755], referencing the same specification document(s).
An unstructured scope string, that is, one that is not a URN in the
above sub-namespace, MAY be registered only where all of the
following apply:
* The scope value is already defined by an existing, publicly
available and stable specification outside of the IETF's control,
or is already in widespread deployment with a single well-
understood meaning.
* The purpose of the registration is to allow profiles referencing
this registry to interoperate with that existing usage. Assigning
a new URN for the same purpose would therefore harm
interoperability rather than help it.
Unstructured strings MUST NOT be registered for newly defined scopes.
Where a specification wishes to register a scope with an unstructured
name, the designated experts MUST verify that the referenced
specification defines the value with the meaning given in the
registration request.
10.1.3. Registration Procedure
Values are registered via Specification Required [RFC8126].
Registration requests should be sent to the oauth-ext-review@ietf.org
(mailto:oauth-ext-review@ietf.org) mailing list to initiate a two-
week review period. To allow for the allocation of values prior to
publication of the final version of a specification, the designated
experts may approve registration once they are satisfied that the
specification will be completed and published. However, if the
specification is not completed and published in a timely manner, as
determined by the designated experts, the designated experts may
request that IANA withdraw the registration.
Registration requests sent to the mailing list for review should use
an appropriate subject (e.g., "Request to register Interoperable
OAuth Scope: example").
Jenkins & Bucksch Expires 22 May 2027 [Page 47]
Internet-Draft OAuth for Native Clients November 2026
Within the review period, the designated experts will either approve
or deny the registration request, communicating this decision to the
review list and IANA. Denials should include an explanation and, if
applicable, suggestions as to how to make the request successful. If
the designated experts are not responsive, the registration
requesters should contact IANA to escalate the process.
Designated experts should apply the following criteria when reviewing
proposed registrations:
* The proposed scope must be unique, that is, it must not duplicate
the functionality of an existing registration.
* The proposed scope is likely to be generally applicable, that is,
useful to multiple independent clients and servers, as opposed to
being used for a single application or deployment.
* The proposed scope name follows the naming conventions in
Section 10.1.2. In particular, an unstructured (non-URN) scope
name is only permitted under the conditions given there.
* The description clearly defines the access rights granted by the
scope, with reference to publicly available and stable
documentation sufficient for interoperability.
* The specification document(s) identify which implementations are
required to support the scope (for example, by defining or
referencing a profile that mandates it), since registration alone
imposes no such requirement (see Section 10.1.1).
* The change controller is clearly identified.
IANA must only accept registry updates from the designated experts
and should direct all requests for registration to the review mailing
list.
In order to enable broadly informed review of registration decisions,
there should be multiple designated experts to represent the
perspectives of different applications using this specification. In
cases where registration may be perceived as a conflict of interest
for a particular expert, that expert should defer to the judgment of
the other experts.
The mailing list is used to enable public review of registration
requests, which enables both designated experts and other interested
parties to provide feedback on proposed registrations. Authors are
encouraged to send a registration request for review while their
specification is still in draft, so that any issues identified can be
Jenkins & Bucksch Expires 22 May 2027 [Page 48]
Internet-Draft OAuth for Native Clients November 2026
fixed before it is published. This is independent of whether the
designated experts choose to allocate values before publication, as
described above.
10.1.4. Registration Template
Scope Name: The OAuth scope value requested (e.g.,
urn:ietf:params:oauth:scope:mail). This name is case sensitive
and MUST conform to Section 10.1.2.
Description: A clear description of what access rights this scope
grants to the client, with reference to publicly available and
stable documentation sufficient for interoperability.
Change Controller: For IETF Stream RFCs, list "IETF". For others,
give the name of the responsible party. Other details (e.g.,
postal address, email address, home page URL) may also be
included.
Specification Document(s): Reference to the document or documents
that specify the scope, preferably including URLs that can be used
to retrieve copies of the documents. An indication of the
relevant sections may also be included but is not required. The
referenced document(s) MUST identify which implementations are
required to support the scope (see Section 10.1.1).
10.1.5. Initial Registry Contents
Scope Name: urn:ietf:params:oauth:scope:mail
Description: Requests access for a client to manage the user's
email. This MUST include full access via all of the following
protocols that the server supports, regardless of which of them
the client actually uses (see Section 8):
* IMAP [RFC9051]
* POP [RFC1939]
* SMTP submission [RFC6409]
* ManageSieve [RFC5804]
* JMAP [RFC8620] - this scope grants the right to use all JMAP
capabilities that the server supports for which
urn:ietf:params:oauth:scope:mail is included in the
Interoperable OAuth Scopes column of the JMAP capabilities
registry.
Change Controller: IETF
Specification Document(s): Section 10.1.5 and Section 8 of this
document
Scope Name: urn:ietf:params:oauth:scope:contacts
Jenkins & Bucksch Expires 22 May 2027 [Page 49]
Internet-Draft OAuth for Native Clients November 2026
Description: Requests access for a client to manage the user's
contacts. This MUST include full access via the CardDAV protocol
[RFC6352] if the server supports it. If the server supports JMAP
[RFC8620], this scope grants the right to use all JMAP
capabilities that the server supports for which
urn:ietf:params:oauth:scope:contacts is included in the
Interoperable OAuth Scopes column of the JMAP capabilities
registry.
Change Controller: IETF
Specification Document(s): Section 10.1.5 and Section 8 of this
document
Scope Name: urn:ietf:params:oauth:scope:calendars
Description: Requests access for a client to manage the user's
calendars. This MUST include full access via the CalDAV protocol
[RFC4791] if the server supports it. If the server supports JMAP
[RFC8620], this scope grants the right to use all JMAP
capabilities that the server supports for which
urn:ietf:params:oauth:scope:calendars is included in the
Interoperable OAuth Scopes column of the JMAP capabilities
registry.
Change Controller: IETF
Specification Document(s): Section 10.1.5 and Section 8 of this
document
10.2. OAuth URI Registrations
This section registers the following values in the IANA "OAuth URI"
registry [IANA.OAuth.Parameters] established by [RFC6755]. They are
the scope values defined by this document within the
urn:ietf:params:oauth:scope: sub-namespace, as required by
Section 10.1.2.
URN: urn:ietf:params:oauth:scope:mail
Common Name: Interoperable OAuth scope granting access to the user's
email
Change Controller: IETF
Specification Document(s): Section 10.1.5 of this document
URN: urn:ietf:params:oauth:scope:contacts
Common Name: Interoperable OAuth scope granting access to the user's
contacts
Change Controller: IETF
Specification Document(s): Section 10.1.5 of this document
URN: urn:ietf:params:oauth:scope:calendars
Common Name: Interoperable OAuth scope granting access to the user's
calendars
Jenkins & Bucksch Expires 22 May 2027 [Page 50]
Internet-Draft OAuth for Native Clients November 2026
Change Controller: IETF
Specification Document(s): Section 10.1.5 of this document
10.3. Update to the JMAP Capabilities Registry
IANA is requested to update the "JMAP Capabilities" registry
established in [RFC8620] to add a new column called "Interoperable
OAuth Scopes". For each capability, this column shall contain a list
of zero or more scopes registered in the Interoperable OAuth Scopes
Registry. Authorization for any scope in the list will grant access
to use that JMAP capability, if the capability is supported by the
server.
The urn:ietf:params:jmap:blob and urn:ietf:params:jmap:quota
capabilities are listed with more than one scope. These provide
additional ways of using data, for example manipulating blobs or
seeing quota usage, but do not grant any additional access rights.
Authorization for a scope never gives a client access to a blob, or
other data, that it could not access through the capabilities granted
by its authorized scopes, whichever mechanism it uses, including the
downloadUrl of the JMAP Session object. For example, a client
authorized only for urn:ietf:params:oauth:scope:mail may use the blob
capability, or the downloadUrl, to access blobs referenced by the
user's email, but not blobs referenced by calendar data, as it has
not been granted the calendars capability.
Future registrations in the "JMAP Capabilities" registry SHOULD
specify a value for the Interoperable OAuth Scopes column in addition
to the fields established in the registration template by
Section 9.4.5 of [RFC8620]. If omitted, registrations will be added
with no value for this column (i.e., no interoperable scopes are
available to grant access to this capability via OAuth).
10.3.1. Initial Interoperable OAuth Scopes Values for the JMAP
Capabilities Registry
IANA is requested to update the existing JMAP Capabilities
registrations with the following values for the Interoperable OAuth
Scopes column.
Capability Name: urn:ietf:params:jmap:core
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail,
urn:ietf:params:oauth:scope:contacts,
urn:ietf:params:oauth:scope:calendars
Capability Name: urn:ietf:params:jmap:mail
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail
Jenkins & Bucksch Expires 22 May 2027 [Page 51]
Internet-Draft OAuth for Native Clients November 2026
Capability Name: urn:ietf:params:jmap:mdn
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail
Capability Name: urn:ietf:params:jmap:smimeverify
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail
Capability Name: urn:ietf:params:jmap:submission
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail
Capability Name: urn:ietf:params:jmap:vacationresponse
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail
Capability Name: urn:ietf:params:jmap:blob
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail,
urn:ietf:params:oauth:scope:contacts,
urn:ietf:params:oauth:scope:calendars
Capability Name: urn:ietf:params:jmap:quota
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail,
urn:ietf:params:oauth:scope:contacts,
urn:ietf:params:oauth:scope:calendars
Capability Name: urn:ietf:params:jmap:sieve
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail
Capability Name: urn:ietf:params:jmap:principals
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail,
urn:ietf:params:oauth:scope:contacts,
urn:ietf:params:oauth:scope:calendars
Capability Name: urn:ietf:params:jmap:principals:owner
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail,
urn:ietf:params:oauth:scope:contacts,
urn:ietf:params:oauth:scope:calendars
Capability Name: urn:ietf:params:jmap:contacts
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:contacts
Capability Name: urn:ietf:params:jmap:calendars
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:calendars
Capability Name: urn:ietf:params:jmap:principals:availability
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:calendars
Capability Name: urn:ietf:params:jmap:webpush-vapid
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail,
urn:ietf:params:oauth:scope:contacts,
urn:ietf:params:oauth:scope:calendars
Jenkins & Bucksch Expires 22 May 2027 [Page 52]
Internet-Draft OAuth for Native Clients November 2026
Capability Name: urn:ietf:params:jmap:websocket
Interoperable OAuth Scopes: urn:ietf:params:oauth:scope:mail,
urn:ietf:params:oauth:scope:contacts,
urn:ietf:params:oauth:scope:calendars
11. Normative References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
[RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifier (URI): Generic Syntax", STD 66,
RFC 3986, DOI 10.17487/RFC3986, January 2005,
<https://www.rfc-editor.org/info/rfc3986>.
[RFC4791] Daboo, C., Desruisseaux, B., and L. Dusseault,
"Calendaring Extensions to WebDAV (CalDAV)", RFC 4791,
DOI 10.17487/RFC4791, March 2007,
<https://www.rfc-editor.org/info/rfc4791>.
[RFC4918] Dusseault, L., Ed., "HTTP Extensions for Web Distributed
Authoring and Versioning (WebDAV)", RFC 4918,
DOI 10.17487/RFC4918, June 2007,
<https://www.rfc-editor.org/info/rfc4918>.
[RFC5397] Sanchez, W. and C. Daboo, "WebDAV Current Principal
Extension", RFC 5397, DOI 10.17487/RFC5397, December 2008,
<https://www.rfc-editor.org/info/rfc5397>.
[RFC5890] Klensin, J., "Internationalized Domain Names for
Applications (IDNA): Definitions and Document Framework",
RFC 5890, DOI 10.17487/RFC5890, August 2010,
<https://www.rfc-editor.org/info/rfc5890>.
[RFC6352] Daboo, C., "CardDAV: vCard Extensions to Web Distributed
Authoring and Versioning (WebDAV)", RFC 6352,
DOI 10.17487/RFC6352, August 2011,
<https://www.rfc-editor.org/info/rfc6352>.
[RFC6570] Gregorio, J., Fielding, R., Hadley, M., Nottingham, M.,
and D. Orchard, "URI Template", RFC 6570,
DOI 10.17487/RFC6570, March 2012,
<https://www.rfc-editor.org/info/rfc6570>.
Jenkins & Bucksch Expires 22 May 2027 [Page 53]
Internet-Draft OAuth for Native Clients November 2026
[RFC6638] Daboo, C. and B. Desruisseaux, "Scheduling Extensions to
CalDAV", RFC 6638, DOI 10.17487/RFC6638, June 2012,
<https://www.rfc-editor.org/info/rfc6638>.
[RFC6749] Hardt, D., Ed., "The OAuth 2.0 Authorization Framework",
RFC 6749, DOI 10.17487/RFC6749, October 2012,
<https://www.rfc-editor.org/info/rfc6749>.
[RFC6750] Jones, M. and D. Hardt, "The OAuth 2.0 Authorization
Framework: Bearer Token Usage", RFC 6750,
DOI 10.17487/RFC6750, October 2012,
<https://www.rfc-editor.org/info/rfc6750>.
[RFC6755] Campbell, B. and H. Tschofenig, "An IETF URN Sub-Namespace
for OAuth", RFC 6755, DOI 10.17487/RFC6755, October 2012,
<https://www.rfc-editor.org/info/rfc6755>.
[RFC7009] Lodderstedt, T., Ed., Dronia, S., and M. Scurtescu, "OAuth
2.0 Token Revocation", RFC 7009, DOI 10.17487/RFC7009,
August 2013, <https://www.rfc-editor.org/info/rfc7009>.
[RFC7591] Richer, J., Ed., Jones, M., Bradley, J., Machulak, M., and
P. Hunt, "OAuth 2.0 Dynamic Client Registration Protocol",
RFC 7591, DOI 10.17487/RFC7591, July 2015,
<https://www.rfc-editor.org/info/rfc7591>.
[RFC7628] Mills, W., Showalter, T., and H. Tschofenig, "A Set of
Simple Authentication and Security Layer (SASL) Mechanisms
for OAuth", RFC 7628, DOI 10.17487/RFC7628, August 2015,
<https://www.rfc-editor.org/info/rfc7628>.
[RFC7636] Sakimura, N., Ed., Bradley, J., and N. Agarwal, "Proof Key
for Code Exchange by OAuth Public Clients", RFC 7636,
DOI 10.17487/RFC7636, September 2015,
<https://www.rfc-editor.org/info/rfc7636>.
[RFC8126] Cotton, M., Leiba, B., and T. Narten, "Guidelines for
Writing an IANA Considerations Section in RFCs", BCP 26,
RFC 8126, DOI 10.17487/RFC8126, June 2017,
<https://www.rfc-editor.org/info/rfc8126>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/info/rfc8174>.
[RFC8252] Denniss, W. and J. Bradley, "OAuth 2.0 for Native Apps",
BCP 212, RFC 8252, DOI 10.17487/RFC8252, October 2017,
<https://www.rfc-editor.org/info/rfc8252>.
Jenkins & Bucksch Expires 22 May 2027 [Page 54]
Internet-Draft OAuth for Native Clients November 2026
[RFC8414] Jones, M., Sakimura, N., and J. Bradley, "OAuth 2.0
Authorization Server Metadata", RFC 8414,
DOI 10.17487/RFC8414, June 2018,
<https://www.rfc-editor.org/info/rfc8414>.
[RFC8620] Jenkins, N. and C. Newman, "The JSON Meta Application
Protocol (JMAP)", RFC 8620, DOI 10.17487/RFC8620, July
2019, <https://www.rfc-editor.org/info/rfc8620>.
[RFC8707] Campbell, B., Bradley, J., and H. Tschofenig, "Resource
Indicators for OAuth 2.0", RFC 8707, DOI 10.17487/RFC8707,
February 2020, <https://www.rfc-editor.org/info/rfc8707>.
[RFC8887] Murchison, K., "A JSON Meta Application Protocol (JMAP)
Subprotocol for WebSocket", RFC 8887,
DOI 10.17487/RFC8887, August 2020,
<https://www.rfc-editor.org/info/rfc8887>.
[RFC9207] Meyer zu Selhausen, K. and D. Fett, "OAuth 2.0
Authorization Server Issuer Identification", RFC 9207,
DOI 10.17487/RFC9207, March 2022,
<https://www.rfc-editor.org/info/rfc9207>.
[RFC9449] Fett, D., Campbell, B., Bradley, J., Lodderstedt, T.,
Jones, M., and D. Waite, "OAuth 2.0 Demonstrating Proof of
Possession (DPoP)", RFC 9449, DOI 10.17487/RFC9449,
September 2023, <https://www.rfc-editor.org/info/rfc9449>.
[RFC9525] Saint-Andre, P. and R. Salz, "Service Identity in TLS",
RFC 9525, DOI 10.17487/RFC9525, November 2023,
<https://www.rfc-editor.org/info/rfc9525>.
[RFC9700] Lodderstedt, T., Bradley, J., Labunets, A., and D. Fett,
"Best Current Practice for OAuth 2.0 Security", BCP 240,
RFC 9700, DOI 10.17487/RFC9700, January 2025,
<https://www.rfc-editor.org/info/rfc9700>.
[RFC9728] Jones, M.B., Hunt, P., and A. Parecki, "OAuth 2.0
Protected Resource Metadata", RFC 9728,
DOI 10.17487/RFC9728, April 2025,
<https://www.rfc-editor.org/info/rfc9728>.
[PSL] Mozilla Foundation, "Public Suffix List",
<https://publicsuffix.org/list/>.
Jenkins & Bucksch Expires 22 May 2027 [Page 55]
Internet-Draft OAuth for Native Clients November 2026
[WebAuthn] Hodges, J., Ed., Jones, J.C., Ed., Jones, M.B., Ed.,
Kumar, A., Ed., and E. Lundberg, Ed., "Web Authentication:
An API for accessing Public Key Credentials - Level 2",
W3C Recommendation, 8 April 2021,
<https://www.w3.org/TR/2021/REC-webauthn-2-20210408/>.
[OpenID.Core]
Sakimura, N., Bradley, J., Jones, M.B., de Medeiros, B.,
and C. Mortimore, "OpenID Connect Core 1.0", 15 December
2023,
<https://openid.net/specs/openid-connect-core-1_0.html>.
[OpenID.Discovery]
Sakimura, N., Bradley, J., Jones, M.B., and E. Jay,
"OpenID Connect Discovery 1.0", 15 December 2023,
<https://openid.net/specs/openid-connect-discovery-
1_0.html>.
12. Informative References
[RFC1939] Myers, J. and M. Rose, "Post Office Protocol - Version 3",
STD 53, RFC 1939, DOI 10.17487/RFC1939, May 1996,
<https://www.rfc-editor.org/info/rfc1939>.
[RFC2384] Gellens, R., "POP URL Scheme", RFC 2384,
DOI 10.17487/RFC2384, August 1998,
<https://www.rfc-editor.org/info/rfc2384>.
[RFC5092] Melnikov, A., Ed. and C. Newman, "IMAP URL Scheme",
RFC 5092, DOI 10.17487/RFC5092, November 2007,
<https://www.rfc-editor.org/info/rfc5092>.
[RFC5804] Melnikov, A., Ed. and T. Martin, "A Protocol for Remotely
Managing Sieve Scripts", RFC 5804, DOI 10.17487/RFC5804,
July 2010, <https://www.rfc-editor.org/info/rfc5804>.
[RFC6409] Gellens, R. and J. Klensin, "Message Submission for Mail",
STD 72, RFC 6409, DOI 10.17487/RFC6409, November 2011,
<https://www.rfc-editor.org/info/rfc6409>.
[RFC6819] Lodderstedt, T., Ed., McGloin, M., and P. Hunt, "OAuth 2.0
Threat Model and Security Considerations", RFC 6819,
DOI 10.17487/RFC6819, January 2013,
<https://www.rfc-editor.org/info/rfc6819>.
Jenkins & Bucksch Expires 22 May 2027 [Page 56]
Internet-Draft OAuth for Native Clients November 2026
[RFC7595] Thaler, D., Ed., Hansen, T., and T. Hardie, "Guidelines
and Registration Procedures for URI Schemes", BCP 35,
RFC 7595, DOI 10.17487/RFC7595, June 2015,
<https://www.rfc-editor.org/info/rfc7595>.
[RFC8314] Moore, K. and C. Newman, "Cleartext Considered Obsolete:
Use of Transport Layer Security (TLS) for Email Submission
and Access", RFC 8314, DOI 10.17487/RFC8314, January 2018,
<https://www.rfc-editor.org/info/rfc8314>.
[RFC9051] Melnikov, A., Ed. and B. Leiba, Ed., "Internet Message
Access Protocol (IMAP) - Version 4rev2", RFC 9051,
DOI 10.17487/RFC9051, August 2021,
<https://www.rfc-editor.org/info/rfc9051>.
[I-D.ietf-mailmaint-pacc]
Eggert, D., Bucksch, B., and M. Diephouse, "Automatic
Configuration of Email, Calendar, and Contact Server
Settings", Work in Progress, Internet-Draft, draft-ietf-
mailmaint-pacc-04, 5 October 2026,
<https://datatracker.ietf.org/doc/html/draft-ietf-
mailmaint-pacc-04>.
[IANA.OAuth.Parameters]
IANA, "OAuth Parameters",
<https://www.iana.org/assignments/oauth-parameters>.
[IANA.JOSE.ALGS]
IANA, "JSON Web Signature and Encryption Algorithms",
<https://www.iana.org/assignments/jose>.
Authors' Addresses
Neil Jenkins (editor)
Fastmail
PO Box 234, Collins St West
Melbourne VIC 8007
Australia
Email: neilj@fastmailteam.com
URI: https://www.fastmail.com
Ben Bucksch
Beonex
Email: ben.bucksch@beonex.com
Jenkins & Bucksch Expires 22 May 2027 [Page 57]