From 9d68c9550b0beef06932867d5a26cfc795c0262c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 25 Jul 2020 21:45:36 +0200 Subject: [PATCH] gatekeeper: automatically redirect to passbook --- gatekeeper/Dockerfile | 4 +- gatekeeper/templates/error.html | 18 ----- gatekeeper/templates/sign_in.html | 119 ------------------------------ 3 files changed, 3 insertions(+), 138 deletions(-) delete mode 100644 gatekeeper/templates/error.html delete mode 100644 gatekeeper/templates/sign_in.html diff --git a/gatekeeper/Dockerfile b/gatekeeper/Dockerfile index 85f0060f7..40fd30fba 100644 --- a/gatekeeper/Dockerfile +++ b/gatekeeper/Dockerfile @@ -4,5 +4,7 @@ COPY templates /templates ENV OAUTH2_PROXY_EMAIL_DOMAINS=* ENV OAUTH2_PROXY_PROVIDER=oidc -ENV OAUTH2_PROXY_CUSTOM_TEMPLATES_DIR=/templates ENV OAUTH2_PROXY_HTTP_ADDRESS=:4180 +# TODO: If service is access over HTTPS, this needs to be set to true (default), otherwise needs to be false +# ENV OAUTH2_PROXY_COOKIE_SECURE=true +ENV OAUTH2_PROXY_SKIP_PROVIDER_BUTTON=true diff --git a/gatekeeper/templates/error.html b/gatekeeper/templates/error.html deleted file mode 100644 index 1ad82648e..000000000 --- a/gatekeeper/templates/error.html +++ /dev/null @@ -1,18 +0,0 @@ -{{define "error.html"}} - - - - - {{.Title}} - - - - -

{{.Title}}

-

{{.Message}}

-
-

Sign In

- - - -{{end}} diff --git a/gatekeeper/templates/sign_in.html b/gatekeeper/templates/sign_in.html deleted file mode 100644 index ddd0e92f1..000000000 --- a/gatekeeper/templates/sign_in.html +++ /dev/null @@ -1,119 +0,0 @@ -{{define "sign_in.html"}} - - - - Sign In with passbook - - - - - -
-
- -
-
-
- - - - -{{end}}