summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorBojan Hartmann <bogie@bawki.de>2020-01-22 22:28:03 +0100
committerBojan Hartmann <bogie@bawki.de>2020-01-22 22:28:03 +0100
commit7bba07ccbfb673a814ab8fc2524a827c77016109 (patch)
treede7bef00fa33db9f40f3448def3dfba39bce8610 /docker-compose.yml
parent70f5326099dc9cfbf1b62d2dcb6ed09aa28174b3 (diff)
downloadwekan-7bba07ccbfb673a814ab8fc2524a827c77016109.tar.gz
wekan-7bba07ccbfb673a814ab8fc2524a827c77016109.tar.bz2
wekan-7bba07ccbfb673a814ab8fc2524a827c77016109.zip
Implemented Nextcloud OAuth2 Hack
Fixed: OAuth2 authentication via Nextcloud(tested Nextcloud 17.0.2-18.0.0) Todo: actually use the profile data: Fullname and Email in Profile
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 6f52a2fb..57ccaeea 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -342,6 +342,31 @@ services:
# Tthe claim name you want to map to the email field:
#- OAUTH2_EMAIL_MAP=email
#-----------------------------------------------------------------
+ # ==== OAUTH2 Nextcloud ====
+ # 1) Register the application with Nextcloud: https://your.nextcloud/settings/admin/security
+ # Make sure you capture the application ID as well as generate a secret key.
+ # 2) Configure the environment variables. This differs slightly
+ # by installation type, but make sure you have the following:
+ #- OAUTH2_ENABLED=true
+ # OAuth2 login style: popup or redirect.
+ #- OAUTH2_LOGIN_STYLE=redirect
+ # Application GUID captured during app registration:
+ #- OAUTH2_CLIENT_ID=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
+ # Secret key generated during app registration:
+ #- OAUTH2_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+ #- OAUTH2_SERVER_URL=https://your-nextcloud.tld
+ #- OAUTH2_AUTH_ENDPOINT=/index.php/apps/oauth2/authorize
+ #- OAUTH2_USERINFO_ENDPOINT=/ocs/v2.php/cloud/user?format=json
+ #- OAUTH2_TOKEN_ENDPOINT=/index.php/apps/oauth2/api/v1/token
+ # The claim name you want to map to the unique ID field:
+ #- OAUTH2_ID_MAP=id
+ # The claim name you want to map to the username field:
+ #- OAUTH2_USERNAME_MAP=id
+ # The claim name you want to map to the full name field:
+ #- OAUTH2_FULLNAME_MAP=display-name
+ # Tthe claim name you want to map to the email field:
+ #- OAUTH2_EMAIL_MAP=email
+ #-----------------------------------------------------------------
# ==== OAUTH2 KEYCLOAK ====
# https://github.com/wekan/wekan/wiki/Keycloak <== MAPPING INFO, REQUIRED
#- OAUTH2_ENABLED=true