Skip to content

oidcdiscovery: build the OpenID discovery document - #1963

Merged
Taahir Ahmed (ahmedtd) merged 1 commit into
agent-substrate:mainfrom
thompsonmax:oidc-discovery-document
Oct 3, 2026
Merged

Taahir Ahmed (ahmedtd) merged 1 commit into
agent-substrate:mainfrom
thompsonmax:oidc-discovery-document

Conversation

@thompsonmax

@thompsonmax Max Thompson (thompsonmax) commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #1756.

  • Adds oidcdiscovery.DiscoveryDocument, which builds the JSON a relying party fetches from <issuer>/.well-known/openid-configuration to find the actor JWT signing keys.
  • The issuer is copied verbatim. jwks_uri trims one trailing slash and appends /openid/v1/jwks, the same path as the Kubernetes service account issuer.
  • id_token_signing_alg_values_supported lists each distinct algorithm passed in, sorted. There is no authorization_endpoint, since the issuer has no login flow.

Nothing calls this yet. A follow-up PR adding ate-idp-server will.

Testing: unit tests, including an exact comparison of the JSON. Nothing exercises it end to end yet.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@EItanya Eitan Yarmush (EItanya) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes LGTM, but would like Taahir Ahmed (@ahmedtd) to weigh in as well

Add DiscoveryDocument, which returns the JSON a relying party fetches
from <issuer>/.well-known/openid-configuration to find the actor JWT
signing keys. It copies the issuer verbatim and derives jwks_uri by
trimming one trailing slash and appending /openid/v1/jwks, the path the
Kubernetes service account issuer uses.
id_token_signing_alg_values_supported lists each distinct algorithm the
caller passes, sorted. There is no authorization_endpoint, since the
issuer has no login flow.
@ahmedtd
Taahir Ahmed (ahmedtd) added this pull request to the merge queue Oct 3, 2026
Merged via the queue into agent-substrate:main with commit 491e4db Oct 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/identity kind/feature An enhancement / feature request or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants