Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth provider: fix in-line JWKs support in client-metadata.json #2718

Open
bnewbold opened this issue Aug 16, 2024 · 1 comment
Open

OAuth provider: fix in-line JWKs support in client-metadata.json #2718

bnewbold opened this issue Aug 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bnewbold
Copy link
Collaborator

We support both jwks and jwks_uri in client-metadata. When I was experimenting, the jwks ("inline" keys in the client-metadata document itself) didn't work though. I can see there is code for it, but I don't think any tests.

It is conceivable that I had an error in my client code, but I did double-check and things worked immediately with jwks_uri.

@matthieusieben
Copy link
Contributor

Could the error you got be something like the following?

Invalid client configuration: [
  {
    "code": "invalid_type",
    "expected": "object",
    "received": "array",
    "path": [
      "jwks"
    ],
    "message": "Expected object, received array"
  }
]

The jwks property must be an object with a keys property that is an array.

{
  "client_id": "https://foo.bar/baz.json",
  "jwks": {
    "keys": [
      { ... }
    ]
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants