Disclaimer: This article explores Dynamic Client Registration (DCR) from a general technical perspective, using publicly available information and hypothetical examples. The views expressed are my own and do not represent those of my employer or any organizations mentioned.
The Problem: A Many-to-Many Network
Imagine an ecosystem like the UK’s Confirmation of Payee (CoP), where hundreds of Payment Service Providers (PSPs) need to communicate with one another.
Unlike a traditional system where many clients connect to a single server, CoP operates as a peer-to-peer network. Each participant may need to establish connections with numerous other participants, creating a many-to-many integration challenge.
As the ecosystem grows, manually registering OAuth clients across these relationships becomes increasingly difficult to manage.
How can we automate this onboarding process while maintaining trust and security?
How Does Traditional OAuth Registration Work?
Before one institution can access another institution’s protected APIs, it typically needs to register itself as an OAuth client with the API provider’s Authorization Server.
Traditionally, this may involve an onboarding process where the institution provides information about its application, such as its identity, intended permissions, and authentication method.
The API provider verifies the institution, configures its OAuth client, and issues a unique client identifier (client_id) along with any applicable credentials, such as a client_secret.
The registered client can then use these credentials to authenticate with the Authorization Server and request an access token, which is subsequently used to access the protected APIs.
This approach works, but imagine repeating it across hundreds of institutions.
The challenge isn’t simply creating client credentials. It’s scaling the onboarding and trust-establishment process across many independent organizations.
Introducing Dynamic Client Registration (DCR)
What if we could automate the registration process through an API instead?
This is what Dynamic Client Registration (DCR) aims to address.
Defined in RFC 7591, DCR provides a standardized way for applications to register themselves programmatically with an OAuth Authorization Server.
Imagine Institution A wants to register with Institution B.
A simplified registration request might look like this:
POST /register HTTP/1.1
Host: auth.institution-b.example
Content-Type: application/json
{
"client_name": "Institution A",
"grant_types": ["client_credentials"],
"token_endpoint_auth_method": "client_secret_basic"
}
The request describes Institution A’s application, including the OAuth grant types it wants to use and how it intends to authenticate when requesting access tokens.
If Institution B approves the registration, its Authorization Server creates an OAuth client and returns a response:
HTTP/1.1 201 Created
Content-Type: application/json
Cache-Control: no-store
{
"client_id": "institution-a-123",
"client_secret": "generated-secret",
"client_secret_expires_at": 0,
"client_name": "Institution A",
"grant_types": ["client_credentials"],
"token_endpoint_auth_method": "client_secret_basic"
}
Here, client_secret_expires_at: 0 indicates that the issued secret has no specified expiration.
Institution A can now use its registered credentials to request an OAuth access token from Institution B.
sequenceDiagram
autonumber
participant A as Institution A
participant B as Institution B<br/>Authorization Server
participant API as Institution B<br/>Protected API
rect rgba(37, 99, 235, 0.08)
Note over A,B: DCR Registration
A->>B: POST /register
B-->>A: 201 Created (client_id + credentials)
end
rect rgba(100, 116, 139, 0.08)
Note over A,B: OAuth Token Issuance
A->>B: POST /token
B-->>A: Access token
end
rect rgba(22, 163, 74, 0.08)
Note over A,API: Protected API Access
A->>API: API Request (Bearer token)
API-->>A: API Response
end
This is a simplified RFC 7591 example, not a complete CoP registration request. DCR supports different client authentication methods, and not every client receives a secret.
But How Do We Establish Trust?
When I first looked at DCR, I wondered why we couldn’t simply expose an endpoint that accepts registration information and returns a client_id.
But there’s a problem.
If Institution A can register itself through an API, what prevents Institution C from pretending to be Institution A?
In a traditional onboarding process, the API provider may verify the requesting institution before creating its OAuth client.
Automating registration doesn’t remove the need for this verification. We still need a way to establish trust.
DCR itself doesn’t prescribe a single way of doing this. RFC 7591 supports different registration policies and mechanisms, including initial access tokens and software statements.
For this article, we’ll explore a directory-backed approach that uses Software Statement Assertions (SSAs).
Software Statement Assertions (SSA)
Imagine introducing a trusted third party, such as a directory authority, that maintains information about registered institutions and their software.
Instead of Institution B blindly trusting the information submitted by Institution A, it can rely on information attested to by an authority it already trusts.
In the UK Open Banking terminology, an SSA is a signed JSON Web Token (JWT) containing metadata about registered software.
The trusted authority signs the SSA using its private key. Institution A then includes the SSA in its DCR registration request.
Institution B can verify the signature using the authority’s public key, which may be obtained from a previously trusted JSON Web Key Set (JWKS) endpoint.
A JWKS is a collection of cryptographic keys, often containing the public keys needed to verify digital signatures.
Once the signature and relevant claims are validated, Institution B can establish that the metadata was attested by the trusted authority and has not been modified.
This also means Institution B doesn’t necessarily need to query the directory for the same software metadata during every registration. It can verify the signed assertion using the authority’s trusted public key.
However, a valid SSA doesn’t necessarily mean that the institution presenting it is its rightful owner.
What If Someone Steals Another Institution’s SSA?
Suppose Institution C obtains a copy of Institution A’s valid SSA.
Institution C could include that SSA in its own DCR registration request.
The SSA’s signature would still be valid because Institution C hasn’t modified it.
This reveals an important distinction.
The SSA proves that a trusted authority attested to the software metadata. It doesn’t, by itself, prove who is presenting it.
So how can Institution B verify that the requester actually controls Institution A’s software identity?
Proof of Possession
In the published UK Open Banking signed-registration model, the DCR registration request itself is also signed.
This means we have two separate signatures:
- SSA signature: Created by the trusted authority using its private key.
- DCR request signature: Created by Institution A using its own private signing key.
The signed DCR request contains the already-signed SSA.
Institution B verifies each signature using the corresponding public key.
If Institution C steals Institution A’s SSA, it still cannot create a fresh, valid DCR request signature using Institution A’s signing identity without possessing Institution A’s private key.
This is a form of Proof of Possession (PoP). Institution A demonstrates that it controls the private key associated with its registered signing identity.
But that leads to another question.
How Does Institution B Know Which Public Key to Trust?
A digital signature alone doesn’t establish identity.
Anyone can generate a private/public key pair, sign a JWT and provide the corresponding public key.
What matters is why we trust the public key used to verify that signature.
In the documented Open Banking Directory model, the SSA contains a field called software_jwks_endpoint.
A simplified SSA payload might look like this:
{
"iss": "trusted-directory",
"software_id": "institution-a-app",
"software_jwks_endpoint":
"https://directory.example/institution-a/jwks"
}
This illustrates decoded SSA claims, not a complete signed JWT.
The software_jwks_endpoint identifies where Institution A’s public signing keys can be retrieved.
Now imagine that the SSA wasn’t protected by a trusted signature.
An attacker could create a fake statement, claim to represent Institution A, and replace the JWKS endpoint with one containing their own public key.
The attacker could then sign the DCR request using their own private key and potentially pass signature verification against that attacker-controlled key.
This is why the order of verification matters.
Institution B first extracts the embedded SSA from the DCR request. It can read the SSA without trusting the outer request yet.
It then verifies the SSA using the directory’s public key, which Institution B already trusts.
Only after validating the SSA does Institution B use the attested software_jwks_endpoint to locate Institution A’s public signing key, subject to the required endpoint and key-validation checks.
Finally, Institution B uses that key to verify the signed DCR registration request.
sequenceDiagram
participant D as Trusted Directory
participant A as Institution A
participant B as Institution B
participant K as Signing JWKS Endpoint
Note over D,B: Institution B already trusts the Directory's signing public key
rect rgba(37, 99, 235, 0.08)
Note over D,A: Preparation and Signing
D->>A: Issues SSA signed with Directory private key
A->>A: Embed SSA in DCR registration JWT
A->>A: Sign DCR JWT using A's signing private key
A->>B: POST /register (Signed DCR JWT)
end
rect rgba(100, 116, 139, 0.08)
Note over B,K: Signature Verification
B->>B: Extract embedded SSA
B->>B: Verify SSA using trusted Directory public key
Note right of B: SSA is now verified
B->>B: Read software_jwks_endpoint from SSA
B->>K: Retrieve Institution A's signing public keys
K-->>B: Return JWKS
B->>B: Verify DCR JWT using A's public key
Note right of B: Proof of possession established
end
rect rgba(22, 163, 74, 0.08)
Note over A,B: Registration Decision
B->>B: Validate claims and registration policy
B-->>A: Registration result
end
The way I understand it is:
The SSA establishes trust in the information used to identify the signing key, while the signed DCR request proves possession of its corresponding private key.
This was one of the most useful insights for me. Verifying a digital signature isn’t enough if we haven’t established why we should trust the key used to verify it.
Why both mTLS and JWT signing?
If mTLS already authenticates Institution A, why do we still need to sign the DCR request? The difference is what we’re authenticating.
- mTLS (transport certificate): authenticates the client at the TLS connection level and protects communication in transit.
- JWT signing (signing certificate): provides message-level authenticity and integrity, allowing the request’s signature to be verified independently of the TLS connection.
For example, if mTLS terminates at an API gateway, the backend service can still independently verify the signed JWT without having participated in the original TLS handshake.
Both mechanisms are not universally required by DCR, but certain security profiles use them together for separate layers of protection. Neither one automatically grants permission to register.
Closing Thoughts
What initially looked like a simple API for registering OAuth clients turned out to involve a more interesting problem: establishing trust between independent institutions.
DCR standardizes the registration process, making automated onboarding possible without requiring every client to be registered manually.
In the directory-backed approach explored here, the SSA and signed registration request work together to form a chain of trust.
However, successful signature verification doesn’t automatically mean registration should be approved. The Authorization Server still needs to validate the relevant claims, check applicable permissions and decide whether the registration is allowed.
It’s also worth noting that the two-signature approach is not a universal requirement of RFC 7591. Other DCR implementations may establish trust differently.
My main takeaway is that DCR standardizes how applications register as OAuth clients, while the surrounding trust mechanisms determine whether their registrations should be accepted.