ory / ory/hydra

Allow custom KID/JWK for ID and access token signing

Open
#3,985 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feat
Dominant language
Go
Stars
17.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
Ory Network Project

No response

Describe your problem

I would like to use a different signing algorithm than what is used in hydra.jwt.access-token and hydra.openid.id-token for a specific client.

Describe your ideal solution

It would be nice to have a kid or signing_jwk option in the client config JSON to define which JWK should be used to sign this specific clients ID and access tokens.

I already created a custom JWK via /admin/keys/my.custom.name.

Just an option to use this key for signing in a specific client is needed.

Workarounds or alternatives

I did not find any alternatives or workarounds.

Version

v2.3.0

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how hydra.jwt.access-token and hydra.openid.id-token select signing keys, then inspect the client config and the /admin/keys/my.custom.name endpoint. Define how a per-client kid or signing_jwk would be configured and applied to ID and access tokens. Done means a specific client can use its selected JWK without changing other clients' signing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, authentication, backend, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.