Solid-OIDC: Global Access Token (GAT) Snapshot

Draft Community Group Report,

More details about this document
This version:
https://solid.github.io/solid-oidc/
Latest published version:
https://solidproject.org/TR/oidc
Test Suite:
https://solid-contrib.github.io/solid-oidc-tests/
Created:
July 16, 2021
Modified:
21 April 2026
Feedback:
GitHub
Editors:
Aaron Coburn (Inrupt)
elf Pavlik
Christoph Braun (Forschungszentrum Informatik (FZI))
Former Editors:
Dmitri Zagidulin
Adam Migus (The Migus Group)
Ricky White (The Migus Group)

Abstract

The Solid OpenID Connect (Solid-OIDC) specification defines how resource servers verify the identity of relying parties and end users based on the authentication performed by an OpenID provider. Solid-OIDC builds on top of OpenID Connect 1.0 for use within the Solid ecosystem.

This version is a snapshot of Solid-OIDC, where a Client uses a global DPOP-bound access token issued by an OpenID Provider to authenticate at an Resource Server.

Status of this document

This report was published by the Solid Community Group. It is not a W3C Standard nor is it on the W3C Standards Track. Please note that under the W3C Community Contributor License Agreement (CLA) there is a limited opt-out and other conditions apply. Learn more about W3C Community and Business Groups.

1. Introduction

This section is non-normative

The Solid project aims to change the way web applications work today to improve privacy and user control of personal data by utilizing current standards, protocols, and tools, to facilitate building extensible and modular decentralized applications based on Linked Data principles.

This specification is written for Authorization and Resource Server owners intending to implement Solid-OIDC. It is also useful to Solid application developers charged with implementing a Solid-OIDC client.

The OAuth 2.0 [RFC6749] and OpenID Connect Core 1.0 [OIDC-CORE] web standards were published in October 2012 and November 2014, respectively. Since publication they’ve seen rapid and widespread adoption across the industry, in turn gaining extensive "real-world" data and experience. The strengths of the protocols are now clear; however, in a changing eco-system where privacy and control of digital identities are becoming more pressing concerns, it is also clear that additional functionality is required.

The additional functionality documented herein aims to address:

  1. Resource servers having no existing trust relationship with identity providers.

  2. Ephemeral Clients as a first-order use-case.

This version is a snapshot of Solid-OIDC, where a Client uses a global DPOP-bound access token issued by an OpenID Provider to authenticate at an Resource Server.

2. Terminology

This section is non-normative

This specification uses the terms "access token", "authorization server", "resource server" (RS), "token endpoint", "grant type", and "client" as defined by The OAuth 2.0 Authorization Framework [RFC6749].

Throughout this specification, we will use the term OpenID Provider (OP) in line with the terminology used in the Open ID Connect Core 1.0 specification (OIDC) [OIDC-CORE]. It should be noted that this is distinct from the entity referred to as an Authorization Server by the OAuth 2.0 Authorization Framework (OAuth) [RFC6749].

This specification also uses the following terms:

WebID as defined by [WEBID]
A WebID is a URI with an HTTP or HTTPS scheme which denotes an Agent (Person, Organization, Group, Device, etc.).
JSON Web Token (JWT) as defined by [RFC7519]
A string representing a set of claims as a JSON object that is encoded in a JWS or JWE, enabling the claims to be digitally signed or MACed and/or encrypted.
JSON Web Key (JWK) as defined by [RFC7517]
A JSON object that represents a cryptographic key. The members of the object represent properties of the key, including its value.
Demonstration of Proof-of-Possession at the Application Layer (DPoP) as defined by [DPOP]
A mechanism for sender-constraining OAuth tokens via a proof-of-possession mechanism on the application level.
DPoP Proof as defined by [DPOP]
A DPoP proof is a JWT that is signed (using JWS) using a private key chosen by the client.
Proof Key for Code Exchange (PKCE) as defined by [RFC7636]
An extension to the Authorization Code flow which mitigates the risk of an authorization code interception attack.

3. Core Concepts

This section is non-normative

In a decentralized ecosystem, such as Solid, an OP may be an identity-as-a-service vendor or, at the other end of the spectrum, a user-controlled OP. In either case, the user may be authenticating from a browser or an application.

Therefore, this specification assumes the use of the Authorization Code Flow with PKCE, in accordance with OAuth and OIDC best practices. It is also assumed that there are no preexisting trust relationships with the OP. This means that client registration, whether dynamic, or static, is entirely optional.

3.1. WebIDs

This section is non-normative

In line with Linked Data principles, a WebID is a HTTP URI that, when dereferenced, resolves to a profile document that is structured data in an RDF 1.1 format. This profile document allows people to link with others to grant access to identity resources as they see fit. WebIDs underpin Solid and are used as a primary identifier for Users in this specification.

4. Basic Flow

This section is non-normative

Details of the flow are available in [SOLID-OIDC-PRIMER]

Basic sequence of authenticating the user and the client.

5. Client Identifiers

OAuth and OIDC require the Client application to identify itself to the OP and RS by presenting a client identifier (Client ID). Solid applications SHOULD use a URI that can be dereferenced as a Client ID Document.

5.1. Client ID Document

When a Client Identifier is dereferenced, the resource MUST be serialized as an application/ld+json document unless content negotiation requires a different outcome.

The serialized JSON form of a Client ID Document MUST use the normative JSON-LD @context provided at https://www.w3.org/ns/solid/oidc-context.jsonld such that the resulting document produces a JSON serialization of an OIDC client registration, per the definition of client registration metadata from [RFC7591] section 2.

Also, the OP MUST dereference the Client ID Document and match any Client-supplied parameters with the values in the Client ID Document.

Further, the redirect_uri provided by the Client MUST be included in the registration redirect_uris list.

This example uses JSON-LD for the Client ID Document:

https://app.example/id

{
  "@context": ["https://www.w3.org/ns/solid/oidc-context.jsonld"],

  "client_id": "https://app.example/id",
  "client_name": "Solid Application Name",
  "redirect_uris": ["https://app.example/callback"],
  "post_logout_redirect_uris": ["https://app.example/logout"],
  "client_uri": "https://app.example/",
  "logo_uri" : "https://app.example/logo.png",
  "tos_uri" : "https://app.example/tos.html",
  "scope" : "openid profile offline_access webid",
  "grant_types" : ["refresh_token","authorization_code"],
  "response_types" : ["code"],
  "default_max_age" : 3600,
  "require_auth_time" : true
}
solid/solid-oidc/95Hosting Client ID Document on Solid Storage

5.1.1. JSON-LD context

This specification defines a JSON-LD context for use with OIDC Client ID Documents. This context is available at https://www.w3.org/ns/solid/oidc-context.jsonld. Client ID Documents that reference this JSON-LD context MUST use the HTTPS scheme.

NOTE: the Solid-OIDC Vocabulary that is part of this context uses the HTTP scheme.

Full content of JSON-LD context can be also seen in Appendix A: Full JSON-LD context

5.2. OIDC Registration

For non-dereferencable identifiers, the Client MUST present a client_id value that has been registered with the OP via either OIDC dynamic or static registration. See also [OIDC-DYNAMIC-CLIENT-REGISTRATION].

When requesting Dynamic Client Registration, the Client MUST specify the scope in the metadata and include webid in its value (space-separated list).

{  "client_name": "S-C-A Browser Demo Client App",  "application_type": "web",  "redirect_uris": [    "https://dynamic-client.example/auth"  ],  "subject_type": "pairwise",  "token_endpoint_auth_method": "client_secret_basic",  "scope" : "openid profile offline_access webid"}

6. WebID Profile

Dereferencing the WebID URL results in a WebID Profile.

solid/solid-oidc/76WebIDs MUST use a secure protocol

6.1. OIDC Issuer Discovery

A WebID Profile lists the OpenID Providers who are trusted to issue tokens on behalf of the agent who controls the WebID. This prevents a malicious OpenID Provider from issuing otherwise valid ID Tokens for arbitrary WebIDs. An entity that verifies ID Tokens will use this mechanism to determine if the issuer is authoritative for the given WebID.

PREFIX solid: <http://www.w3.org/ns/solid/terms#>

<#id> solid:oidcIssuer <https://oidc.example> .
WebID Profile specifying an OIDC issuer

To discover a list of valid issuers, the WebID Profile MUST be checked for the existence of statements matching

?webid <http://www.w3.org/ns/solid/terms#oidcIssuer> ?iss .
where ?webid is set to WebID. The ?iss will result in an IRI denoting valid issuer for that WebID. The WebID Profile Document MUST include one or more statements matching the OIDC issuer pattern.
solid/solid-oidc/80OIDC issuer discovery when WebID is not publicly readable
solid/solid-oidc/92In some cases OIDC issuer can't be disclosed in WebID Profile
solid/solid-oidc/91consider support for OIDC self-issuer

A server hosting a WebID Profile Document MAY transmit the http://www.w3.org/ns/solid/terms#oidcIssuer values via Link Headers, but they MUST be the same as in the RDF representation. A client MUST treat the RDF in the body of the WebID Profile as canonical but MAY use the Link Header values as an optimization.

Link: <https://oidc.example>;
      rel="http://www.w3.org/ns/solid/terms#oidcIssuer";
      anchor="#id"
HTTP response Link Header (line breaks added for readibility)

7. Requesting the WebID Claim using a Scope Value

Solid-OIDC uses scope values, as defined in [RFC6749] Section 3.3 and [OIDC-CORE] Section 5.4 to specify what information is made available as Claim Values.

Solid-OIDC defines the following scope value for use with claim requests:

webid
REQUIRED. This scope requests access to the End-User’s webid Claim.

8. Issuer Validation after receiving the Authorization Code

In accordance with Best Current Practice [RFC9700], defense against Mix-Up Attacks is required in Solid-OIDC as clients are expected to interact with more than one OP. To this end, this specification adopts the mechanism defined in [RFC9207].

The OP MUST include the iss query parameter alongside the authorization code when redirecting the user agent back to the Client’s redirect_uri. The value of the iss parameter MUST be the Issuer Identifier of the OP, as defined in [OIDC-CORE].

HTTP/1.1 302 Found
Location: https://client.example.com/callback?
                                        code=n0esc392ae491076
                                        &state=af0ifjsldkj
                                        &iss=https%3A%2F%2Fidp.example.com
Example Authorization Response including the iss query parameter

Upon receiving the authorization response, the Client MUST validate the iss parameter:

If the iss parameter is missing or does not match the expected value, the Client MUST reject the response, MUST NOT exchange the authorization code for tokens, and SHOULD signal an error to the user.

9. Token Instantiation

Assuming one of the following options

the OP MUST return two tokens to the Client:

  1. A DPoP-bound Access Token

  2. An OIDC ID Token

This version of Solid-OIDC relies on a global DPOP-bound access token issued by the OpenID Provider (OP) to authenticate a Client at a Resource Server (RS).

Solid-OIDC 0.1.0 relies the concept of Authorization Servers (AS) that manage access to the Resource Servers under their authority ("realm"). To access data provided by an RS, a Client needs to obtain an access token issued by the AS that the RS is overseen by. To obtain such an access token, the Client needs to successfully authenticating at and be indeed authorized by the AS to access the desired data. To authenticate at the AS, the Client presents the OIDC ID token obtained from their OP.

Solid-OIDC 0.1.0 thus mandates:

9.1. DPoP-bound Access Token

The DPoP-bound Access Token MUST be a valid JWT. See also: [RFC7519].

When requesting a DPoP-bound Access Token, the Client MUST send a DPoP proof JWT that is valid according to the OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP) § section-5. The DPoP proof JWT is used to bind the access token to a public key. See also: [DPOP].

With the webid scope, the DPoP-bound Access Token payload MUST contain these claims:

An example DPoP-bound Access Token:

{
    "webid": "https://janedoe.com/web#id",
    "sub": "https://janedoe.com/web#id"
    "client_id": "https://client.example.com/web#id"
    "iss": "https://idp.example.com",
    "aud": "solid",
    "iat": 1541493724,
    "exp": 1573029723,
    "cnf":{
      "jkt":"0ZcOCORZNYy-DWpqq30jZyJGHTN0d2HglBV3uiguA4I"
    },
}

9.2. OIDC ID Token

When requesting the webid scope, the user’s WebID MUST be present in the ID Token as the webid claim.

An example OIDC ID Token:

{
    "webid": "https://janedoe.com/web#id",
    "sub": "https://janedoe.com/web#id",
    "azp": "https://client.example.com/web#id",
    "iss": "https://idp.example.com",
    "aud": ["https://client.example.com/web#id","solid"],
    "nonce": "n-0S6_WzA2Mj",
    "exp": 1311281970,
    "iat": 1311280970,
}
solid/solid-oidc/47Presenting multiple WebIDs in an ID Token

9.3. Token Validation

A verifying party MUST reject non-conforming tokens.

In addition, an access token MUST be validated according to OIDC-CORE, Section 3.1.3.8. In addition, an ID Token MUST be validated according to OIDC-CORE, Section 3.1.3.7

The verifying party MUST perform § 6.1 OIDC Issuer Discovery using the value of the webid claim to dereference the WebID Profile Document.

Unless the verifying party acquires OP keys through some other means, or it chooses to reject tokens issued by this OP, the verifying party MUST follow OpenID Connect Discovery 1.0 [OIDC-DISCOVERY] to find an OP’s signing keys (JWK).

10. Resource Access

When a Client performs an unauthenticated request to a protected resource, the Resource Server MUST respond with the HTTP 401 status code, and a WWW-Authenticate HTTP header. See also: [RFC9110](11.6.1. WWW-Authenticate)

When a Client performs an authenticated request, i.e., using the DPOP-bound access token issued by the OP and a self-issued DPOP token, the Resource Server MUST perform § 10.1 DPoP Validation and § 9.3 Token Validation.

10.1. DPoP Validation

A DPoP Proof that is valid according to RFC9449, MUST be present when a DPoP-bound Access Token is used.

The DPoP-bound Access Token MUST be validated according to RFC9449, but the RS MAY perform additional verification in order to determine whether to grant access to the requested resource.

11. Solid-OIDC Conformance Discovery

An OpenID Provider that conforms to the Solid-OIDC specification MUST advertise it in the OpenID Connect Discovery 1.0 [OIDC-DISCOVERY] resource by including webid in its scopes_supported metadata property.

{
    "scopes_supported": ["openid", "offline_access", "webid"]
}

12. Security Considerations

This section is non-normative

As this specification builds upon existing web standards, security considerations from OAuth, OIDC, PKCE, and the DPoP specifications may also apply unless otherwise indicated. The following considerations should be reviewed by implementors and system/s architects of this specification.

Some of the references within this specification point to documents with a Living Standard or Draft status, meaning their contents can still change over time. It is advised to monitor these documents, as such changes might have security implications.

In addition to above considerations, implementors should consider the Security Considerations in context of the Solid Protocol [SOLID-PROTOCOL].

12.1. TLS Requirements

All TLS requirements outlined in [BCP195] apply to this specification.

All tokens, Client, and User credentials MUST only be transmitted over TLS.

12.2. Client IDs

An RS SHOULD assign a fixed set of low trust policies to any client identified as anonymous.

Implementors SHOULD expire ephemeral Client IDs that are kept in server storage to mitigate the potential for a bad actor to fill server storage with unexpired or otherwise useless Client IDs.

12.3. Client Secrets

Client secrets SHOULD NOT be stored in browser local storage. Doing so will increase the risk of data leaks should an attacker gain access to Client credentials.

12.4. Client Trust

This section is non-normative

Clients are ephemeral, client registration is optional, and most Clients cannot keep secrets. These, among other factors, are what makes Client trust challenging.

13. Privacy Considerations

13.1. Access Token Reuse

This section is non-normative

With JWTs being extendable by design, there is potential for a privacy breach if Access Tokens get reused across multiple resource servers. It is not unimaginable that a custom claim is added to the Access Token on instantiation. This addition may unintentionally give other resource servers consuming the Access Token information about the user that they may not wish to share outside of the intended RS.

14. Acknowledgments

This section is non-normative

The Solid Community Group would like to thank the following individuals for reviewing and providing feedback on the specification (in alphabetical order):

Tim Berners-Lee, Justin Bingham, Sarven Capadisli, Aaron Coburn, Matthias Evering, Jamie Fiedler, Michiel de Jong, Ted Thibodeau Jr, Kjetil Kjernsmo, Mitzi László, Pat McBennett, Adam Migus, Jackson Morgan, Davi Ottenheimer, Justin Richer, severin-dsr, Henry Story, Michael Thornburgh, Emmet Townsend, Ruben Verborgh, Ricky White, Paul Worrall, Dmitri Zagidulin.

Appendix A: Full JSON-LD context

The JSON-LD context is defined as:

{
  "@context": {
    "@version": 1.1,
    "@protected": true,
    "oidc": "http://www.w3.org/ns/solid/oidc#",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "client_id": {
      "@id": "@id",
      "@type": "@id"
    },
    "client_uri": {
      "@id": "oidc:client_uri",
      "@type": "@id"
    },
    "logo_uri": {
      "@id": "oidc:logo_uri",
      "@type": "@id"
    },
    "policy_uri": {
      "@id": "oidc:policy_uri",
      "@type": "@id"
    },
    "tos_uri": {
      "@id": "oidc:tos_uri",
      "@type": "@id"
    },
    "redirect_uris": {
      "@id": "oidc:redirect_uris",
      "@type": "@id",
      "@container": [
        "@id",
        "@set"
      ]
    },
    "require_auth_time": {
      "@id": "oidc:require_auth_time",
      "@type": "xsd:boolean"
    },
    "default_max_age": {
      "@id": "oidc:default_max_age",
      "@type": "xsd:integer"
    },
    "application_type": {
      "@id": "oidc:application_type"
    },
    "client_name": {
      "@id": "oidc:client_name"
    },
    "contacts": {
      "@id": "oidc:contacts"
    },
    "grant_types": {
      "@id": "oidc:grant_types"
    },
    "response_types": {
      "@id": "oidc:response_types"
    },
    "scope": {
      "@id": "oidc:scope"
    },
    "token_endpoint_auth_method": {
      "@id": "oidc:token_endpoint_auth_method"
    }
  }
}

Conformance

Document conventions

Conformance requirements are expressed with a combination of descriptive assertions and RFC 2119 terminology. The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this document are to be interpreted as described in RFC 2119. However, for readability, these words do not appear in all uppercase letters in this specification.

All of the text of this specification is normative except sections explicitly marked as non-normative, examples, and notes. [RFC2119]

Examples in this specification are introduced with the words “for example” or are set apart from the normative text with class="example", like this:

This is an example of an informative example.

Informative notes begin with the word “Note” and are set apart from the normative text with class="note", like this:

Note, this is an informative note.

References

Normative References

[DPOP]
D. Fett; et al. OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP). URL: https://datatracker.ietf.org/doc/html/rfc9449
[OIDC-CORE]
N. Sakimura; et al. OpenID Connect Core 1.0. URL: https://openid.net/specs/openid-connect-core-1_0.html
[OIDC-DISCOVERY]
N. Sakimura; et al. OpenID Connect Discovery 1.0. URL: https://openid.net/specs/openid-connect-discovery-1_0.html
[OIDC-DYNAMIC-CLIENT-REGISTRATION]
N. Sakimura; J. Bradley; M.B. Jones. OpenID Connect Dynamic Client Registration 1.0. URL: https://openid.net/specs/openid-connect-registration-1_0.html
[RFC2119]
S. Bradner. Key words for use in RFCs to Indicate Requirement Levels. March 1997. Best Current Practice. URL: https://datatracker.ietf.org/doc/html/rfc2119
[RFC6749]
D. Hardt, Ed.. The OAuth 2.0 Authorization Framework. October 2012. Proposed Standard. URL: https://www.rfc-editor.org/rfc/rfc6749
[RFC7517]
M. Jones. JSON Web Key (JWK). May 2015. Proposed Standard. URL: https://www.rfc-editor.org/rfc/rfc7517
[RFC7519]
M. Jones; J. Bradley; N. Sakimura. JSON Web Token (JWT). May 2015. Proposed Standard. URL: https://www.rfc-editor.org/rfc/rfc7519
[RFC7591]
J. Richer, Ed.; et al. OAuth 2.0 Dynamic Client Registration Protocol. July 2015. Proposed Standard. URL: https://www.rfc-editor.org/rfc/rfc7591
[RFC7636]
N. Sakimura, Ed.; J. Bradley; N. Agarwal. Proof Key for Code Exchange by OAuth Public Clients. September 2015. Proposed Standard. URL: https://www.rfc-editor.org/rfc/rfc7636
[RFC9207]
K. Meyer zu Selhausen; D. Fett. OAuth 2.0 Authorization Server Issuer Identification. March 2022. Proposed Standard. URL: https://www.rfc-editor.org/rfc/rfc9207
[SOLID-OIDC-PRIMER]
Jackson Morgan; Aaron Coburn; Matthieu Bosquet. Solid-OIDC Primer. URL: https://solid.github.io/solid-oidc/primer/
[SOLID-PROTOCOL]
Sarven Capadisli; et al. Solid Protocol. URL: https://solidproject.org/TR/protocol
[WEBID]
Andrei Sambra; Henry Story; Tim Berners-Lee. WebID 1.0. URL: https://www.w3.org/2005/Incubator/webid/spec/identity/

Non-Normative References

[BCP195]
Best Current Practice 195. URL: https://www.rfc-editor.org/info/bcp195
[RFC9110]
R. Fielding, Ed.; M. Nottingham, Ed.; J. Reschke, Ed.. HTTP Semantics. June 2022. Internet Standard. URL: https://httpwg.org/specs/rfc9110.html
[RFC9700]
T. Lodderstedt; et al. Best Current Practice for OAuth 2.0 Security. January 2025. Best Current Practice. URL: https://www.rfc-editor.org/rfc/rfc9700