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

[Q&A] Is it possible to specify multiple issueer #222

Open
thiner opened this issue Jun 12, 2024 · 3 comments
Open

[Q&A] Is it possible to specify multiple issueer #222

thiner opened this issue Jun 12, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@thiner
Copy link

thiner commented Jun 12, 2024

I want my API to support selected auth providers. Is there a way oidc-guard can support this feature?

@IvanJosipovic
Copy link
Owner

IvanJosipovic commented Jun 12, 2024

Multiple issuers can be specified in the helm values, see

validIssuers: []

Alternatively, if you want to control the issuer per API, disable the issuer validation in the helm values,

validateIssuer: true

then you can do it in the external auth call:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress
  annotations:
    nginx.ingress.kubernetes.io/auth-url: https://oidc-guard.company.com/auth?iss=myissuer
    nginx.ingress.kubernetes.io/auth-signin: https://oidc-guard.company.com/signin
spec:

@thiner
Copy link
Author

thiner commented Jun 13, 2024

Thanks for your answer. Is there anyway we can set the values as an env in the deployment.yaml or configma?
OK, I found a way to have the configuration in config map.

@thiner thiner closed this as completed Jun 13, 2024
@thiner thiner reopened this Jun 13, 2024
@thiner
Copy link
Author

thiner commented Jun 13, 2024

Now, another problem popping up. How can I set multiple JWKSUrl? Each issuer has its own JWKSUrl, but the values.yaml accepts string rather than array value.

@IvanJosipovic IvanJosipovic added the enhancement New feature or request label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants