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

Allow passing a map of issuer -> JWKS to the jwks configuration attribute #3

Open
anderseknert opened this issue Nov 18, 2024 · 0 comments

Comments

@anderseknert
Copy link
Member

Those who may have multiple valid issuers configured but still want to provide the JWKS data per issuer inside of a bundle (and not fetched via the metadata flow), we should allow passing an object to the jwks object that maps between issuer and JWKS. Currently, the user would have to do this out of band, and merge the keys into a single keys array:

{
  "allowed_issuers": [
    "https://foo.example.com",
    "https://bar.example.com",
  ],
  "jwks": {
    "keys": [
      {
        "kty": "RSA",
        "n": "0uUZ4XpiWu4ds6SxR.....",
        "e": "AQAB"
      },
      { 
        "more keys from all issuers": "here..."
      }
    ]
  }
}

In addition to this, we should allow passing a map of issuers -> keys.

{
  "allowed_issuers": [
    "https://foo.example.com",
    "https://bar.example.com"
  ],
  "jwks": {
    "https://foo.example.com": {
      "keys": [
        {
          "kty": "RSA",
          "n": "0uUZ4XpiWu4ds6SxR.....",
          "e": "AQAB"
        }
      ]
    },
    "https://bar.example.com": {
      "keys": [
        {
          "kty": "RSA",
          "n": "RxS6sd4uWipX4ZUu0.....",
          "e": "AQAB"
        }
      ]
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant