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

Added Discovery to grpc #3598

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

koendelaat
Copy link
Contributor

@koendelaat koendelaat commented Jul 1, 2024

Overview

Adds the discovery information to the API

What this PR does / why we need it

Allow API clients to retrieve important information regarding dex config (e.g. issuerUrl)

Use-case:

API is being used to create clients, however to use this client the issuerUrl is required

Signed-off-by: Koen de Laat <koen.de.laat@philips.com>
@koendelaat koendelaat marked this pull request as ready for review August 22, 2024 16:41
@koendelaat
Copy link
Contributor Author

@nabokihms, Can you add the required labels?

@nabokihms
Copy link
Member

@koendelaat sure I can! Could you please share why do we need this feature?

@koendelaat
Copy link
Contributor Author

koendelaat commented Aug 29, 2024

@koendelaat sure I can! Could you please share why do we need this feature?

This allows for API clients to get information about the Dex server.

Especially when used in Infrastructure as Code (e.g. Terraform, Crossplane), this information can be used to provision other resources that might require this information (e.g. issuerUrl required by oauth2-proxy to do token validation).

I've extended the terraform provider with this functionality based on this PR, see https://github.com/koendelaat/terraform-provider-dexidp/ and https://registry.terraform.io/providers/koendelaat/dexidp/latest/docs/data-sources/discovery

Copy link
Member

@nabokihms nabokihms left a comment

Choose a reason for hiding this comment

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

Overall, it looks great. Thanks @koendelaat

@nabokihms nabokihms merged commit d0f1777 into dexidp:master Aug 29, 2024
15 of 16 checks passed
koendelaat added a commit to koendelaat/terraform-provider-dexidp that referenced this pull request Sep 11, 2024
Signed-off-by: Koen de Laat <koen.de.laat@philips.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants