summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-08-25 00:49:02 +0300
committerLauri Ojansivu <x@xet7.org>2018-08-25 00:49:02 +0300
commit39312a075e5746ddeccbf3fc22df7177a86ba4d5 (patch)
treecfe58a957d423cedfdfa27368ad14c6e0d78ea00 /Dockerfile
parent96173ad4314cf783f4f7d9c0278762f144d95758 (diff)
downloadwekan-39312a075e5746ddeccbf3fc22df7177a86ba4d5.tar.gz
wekan-39312a075e5746ddeccbf3fc22df7177a86ba4d5.tar.bz2
wekan-39312a075e5746ddeccbf3fc22df7177a86ba4d5.zip
- [OAuth2 Login on Standalone Wekan](https://github.com/wekan/wekan/wiki/OAuth2). For example, Rocket.Chat can provide OAuth2 login to Wekan.
Also, if you have Rocket.Chat using LDAP/SAML/Google/etc for logging into Rocket.Chat, then same users can login to Wekan when Rocket.Chat is providing OAuth2 login to Wekan. Thanks to salleman33 and xet7 ! Closes #234
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index e3371d55..eae85b1e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,6 +18,12 @@ ARG MATOMO_WITH_USERNAME
ARG BROWSER_POLICY_ENABLED
ARG TRUSTED_URL
ARG WEBHOOKS_ATTRIBUTES
+ARG OAUTH2_CLIENT_ID
+ARG OAUTH2_SECRET
+ARG OAUTH2_SERVER_URL
+ARG OAUTH2_AUTH_ENDPOINT
+ARG OAUTH2_USERINFO_ENDPOINT
+ARG OAUTH2_TOKEN_ENDPOINT
# Set the environment variables (defaults where required)
# DOES NOT WORK: paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303
@@ -38,7 +44,13 @@ ENV BUILD_DEPS="apt-utils gnupg gosu wget curl bzip2 build-essential python git
MATOMO_WITH_USERNAME=false \
BROWSER_POLICY_ENABLED=true \
TRUSTED_URL="" \
- WEBHOOKS_ATTRIBUTES=""
+ WEBHOOKS_ATTRIBUTES="" \
+ OAUTH2_CLIENT_ID="" \
+ OAUTH2_SECRET="" \
+ OAUTH2_SERVER_URL="" \
+ OAUTH2_AUTH_ENDPOINT="" \
+ OAUTH2_USERINFO_ENDPOINT="" \
+ OAUTH2_TOKEN_ENDPOINT=""
# Copy the app to the image
COPY ${SRC_PATH} /home/wekan/app