Skip to content

Add support for Hashicorp Vault through discovery #454

@tdiesler

Description

@tdiesler

Vault reports its .well-known/openid-configuration like this ...

{
  "issuer": "/v1/identity/oidc/provider/default",
  "jwks_uri": "/v1/identity/oidc/provider/default/.well-known/keys",
  "authorization_endpoint": "/ui/vault/identity/oidc/provider/default/authorize",
  "token_endpoint": "/v1/identity/oidc/provider/default/token",
  "userinfo_endpoint": "/v1/identity/oidc/provider/default/userinfo",
  "request_parameter_supported": false,
  "request_uri_parameter_supported": false,
  "id_token_signing_alg_values_supported": [
    "RS256",
    "RS384",
    "RS512",
    "ES256",
    "ES384",
    "ES512",
    "EdDSA"
  ],
  ...
}

None of the endpoints are URLs and the issuer is indeed the value encoded in the id_token.

I propose a small API change for provider discovery, which allows the use of provider a provider baseUrl.
Yes, we already have the ability to create a new Provider from a given config, which could be used to prefix all of these values with a baseUrl, but it won't work for issuer as this needs to stay as it is.

CrossRef: hashicorp/vault#30117

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions