diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-04-07 10:58:51 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-07 10:58:51 +1000 |
| commit | 4ebd8fdf4e9fb0eb20684197f39929304fcb74b7 (patch) | |
| tree | 895df7c98abce57e1e3e83eab848e399effce227 /internal/handlers/const.go | |
| parent | a694cf851f24868c2ca6c6a8e51f66083b22b4a2 (diff) | |
feat(oidc): provide cors config including options handlers (#3005)
This adjusts the CORS headers appropriately for OpenID Connect. This includes responding to OPTIONS requests appropriately. Currently this is only configured to operate when the Origin scheme is HTTPS; but can easily be expanded in the future to include additional Origins.
Diffstat (limited to 'internal/handlers/const.go')
| -rw-r--r-- | internal/handlers/const.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/handlers/const.go b/internal/handlers/const.go index 64c174034..a43fa75b9 100644 --- a/internal/handlers/const.go +++ b/internal/handlers/const.go @@ -72,16 +72,6 @@ const ( auth = "auth" ) -// OIDC constants. -const ( - pathLegacyOpenIDConnectAuthorization = "/api/oidc/authorize" - pathLegacyOpenIDConnectIntrospection = "/api/oidc/introspect" - pathLegacyOpenIDConnectRevocation = "/api/oidc/revoke" - - // Note: If you change this const you must also do so in the frontend at web/src/services/Api.ts. - pathOpenIDConnectConsent = "/api/oidc/consent" -) - const ( accept = "accept" reject = "reject" |
