W3C First Public Working Draft
Copyright © 2026 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.
This document defines an authentication suite for the Linked Web Storage (LWS) protocol, enabling clients that are able to sign their own identity tokens to integrate with LWS.
This section describes the status of this document at the time of its publication. A list of current W3C publications and the latest revision of this technical report can be found in the W3C standards and drafts index.
This is an unofficial proposal.
This document was published by the Linked Web Storage Working Group as a First Public Working Draft using the Recommendation track.
Publication as a First Public Working Draft does not imply endorsement by W3C and its Members.
This is a draft document and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to cite this document as other than a work in progress.
This document was produced by a group operating under the W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent that the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
This document is governed by the 18 August 2025 W3C Process Document.
Self-issued identity is important for cases where applications act on their own behalf.
This includes autonomous bots as well as server-side scripts, among others.
In these cases, the agent is able to securely manage the private portion of a keypair, which it uses to generate signed JSON Web Tokens (JWT).
This specification describes how this class of agents can generate authentication credentials that can be used with a Linked Web Storage while using agent identifers with the did:key: method.
As well as sections marked as non-normative, all authoring guidelines, diagrams, examples, and notes in this specification are non-normative. Everything else in this specification is normative.
The key words MAY, MUST, and MUST NOT 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.
The terms "authorization server" and "client" are defined by The OAuth 2.0 Authorization Framework [RFC6749].
The terms "JSON Web Token (JWT)" and "claim" are defined by JSON Web Token [RFC7519].
The terms "authentication credential" and "authentication suite" are defined by Linked Web Storage Protocol [LWS-PROTOCOL]
A self-issued authentication credential is serialized as a signed JSON Web Token (JWT). In order to use a JWT as an LWS authentication credential, the following additional requirements apply.
sub (subject) claim for the LWS subject identifier. The subject identifier MUST use a did:key: URI.
iss (issuer) claim for the LWS issuer identifier.
client_id (client ID) claim for the LWS client identifier.
sub, iss, and client_id MUST all use the same URI value.
aud (audience) claim. The aud claim MUST include the target authorization server.
exp (expiration) claim, indicating the time the token expires.
iat (issued at) claim, indicating the time the token was issued.
An example JWT that is also an LWS authentication credential is included below.
{
"kty": "EC",
"alg": "ES256",
"typ": "JWT",
"crv": "P-256"
}
.
{
"sub": "did:key:zDnaerx9CtbPJ1q36T5Ln5wYt3MQYeGRG5ehnPAmxcf5mDZpv",
"iss": "did:key:zDnaerx9CtbPJ1q36T5Ln5wYt3MQYeGRG5ehnPAmxcf5mDZpv",
"client_id": "did:key:zDnaerx9CtbPJ1q36T5Ln5wYt3MQYeGRG5ehnPAmxcf5mDZpv",
"aud": ["https://as.example"],
"iat": 1761313600,
"exp": 1761313900
}
.
signature
For subject identifiers that use the did:key method, a verifier will extract a public key from the identifier itself, as described in Section 3.1.3 of "The did:key Method" [did-key]. Using this public key, the signature of the JWT MUST be validated as described in [RFC7515], Section 5.2.
A verifier MUST validate all claims described by the authentication credential data model.
A verifier MUST ensure that the current time is before the time represented by the exp claim. Implementers MAY provide for some small leeway to account for clock skew.
A self-issued JSON Web Token used as an authentication credential MUST use the urn:ietf:params:oauth:token-type:jwt URI when interacting with an authorization server.
This section is non-normative.
All security considerations described in "Best Current Practice for OAuth 2.0 Security" [RFC9700] and "OpenID Connect Core 1.0" Section 16 [OPENID-CONNECT-CORE] apply to this specification.
This section is non-normative.
This section needs to be completed.