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

feat: experimental CORS proxy for OIDC #460

Merged
merged 1 commit into from
Sep 24, 2021
Merged

Conversation

csmig
Copy link
Member

@csmig csmig commented Sep 24, 2021

The CORS proxy feature is experimental for use by deployments unable to control their OIDC Provider's CORS policy. The web client (UI) is configured to use the CORS proxy by setting:

STIGMAN_CLIENT_OIDC_PROVIDER = "api/op/cors-proxy/oidc"

The CORS proxy forwards incoming requests to the OIDC Provider configured by STIGMAN_OIDC_PROVIDER

Adds endpoints:

/op/cors-proxy/oidc/.well-known/openid-configuration
/op/cors-proxy/oidc/token

Adds optional envvar:
STIGMAN_OIDC_PROXY_HOST: No default The Host: header value to be used by the CORS proxy for outbound requests. Some OIDC providers return configuration metadata with endpoint URLs having this value as their base.

@csmig csmig merged commit e521403 into NUWCDIVNPT:main Sep 24, 2021
@csmig csmig deleted the cors-proxy branch January 1, 2022 23:36
@csmig csmig mentioned this pull request Jan 12, 2022
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

Successfully merging this pull request may close these issues.

1 participant