|
@@ -102,29 +102,41 @@ echo -e "\t-Disable the OAuth2 Token Endpoint of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME oauth2-token-endpoint=''"
|
|
|
echo -e "\n"
|
|
|
echo -e "OAuth2 ID Mapping."
|
|
|
-echo -e "To enable the ID Mapping of Wekan:"
|
|
|
+echo -e "To enable the OAuth2 ID Mapping of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME oauth2-id-map='username.uid'"
|
|
|
-echo -e "\t-Disable the ID Mapping of Wekan:"
|
|
|
+echo -e "\t-Disable the OAuth2 ID Mapping of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME oauth2-id-map=''"
|
|
|
echo -e "\n"
|
|
|
echo -e "OAuth2 Username Mapping."
|
|
|
-echo -e "To enable the Username Mapping of Wekan:"
|
|
|
+echo -e "To enable the OAuth2 Username Mapping of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME oauth2-username-map='username'"
|
|
|
-echo -e "\t-Disable the Username Mapping of Wekan:"
|
|
|
+echo -e "\t-Disable the OAuth2 Username Mapping of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME oauth2-username-map=''"
|
|
|
echo -e "\n"
|
|
|
echo -e "OAuth2 Fullname Mapping."
|
|
|
-echo -e "To enable the Fullname Mapping of Wekan:"
|
|
|
+echo -e "To enable the OAuth2 Fullname Mapping of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME oauth2-fullname-map='fullname'"
|
|
|
-echo -e "\t-Disable the Fullname Mapping of Wekan:"
|
|
|
+echo -e "\t-Disable the OAuth2 Fullname Mapping of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME oauth2-fullname-map=''"
|
|
|
echo -e "\n"
|
|
|
echo -e "OAuth2 Email Mapping."
|
|
|
-echo -e "To enable the Email Mapping of Wekan:"
|
|
|
+echo -e "To enable the OAuth2 Email Mapping of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME oauth2-email-map='email'"
|
|
|
-echo -e "\t-Disable the Email Mapping of Wekan:"
|
|
|
+echo -e "\t-Disable the OAuth2 Email Mapping of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME oauth2-email-map=''"
|
|
|
echo -e "\n"
|
|
|
+echo -e "OAuth2 ID Token Whitelist Fields."
|
|
|
+echo -e "To enable the OAuth2 ID Token Whitelist Fields of Wekan:"
|
|
|
+echo -e "\t$ snap set $SNAP_NAME oauth2-id-token-whitelist-fields='[]'"
|
|
|
+echo -e "\t-Disable the OAuth2 ID Token Whitelist Fields of Wekan:"
|
|
|
+echo -e "\t$ snap set $SNAP_NAME oauth2-id-token-whitelist-fields=''"
|
|
|
+echo -e "\n"
|
|
|
+echo -e "OAuth2 Request Permissions."
|
|
|
+echo -e "To enable the OAuth2 Request Permissions of Wekan:"
|
|
|
+echo -e "\t$ snap set $SNAP_NAME oauth2-request-permissions='[openid profile email]'"
|
|
|
+echo -e "\t-Disable the OAuth2 Request Permissions of Wekan:"
|
|
|
+echo -e "\t$ snap set $SNAP_NAME oauth2-request-permissions=''"
|
|
|
+echo -e "\n"
|
|
|
echo -e "Ldap Enable."
|
|
|
echo -e "To enable the ldap of Wekan:"
|
|
|
echo -e "\t$ snap set $SNAP_NAME ldap-enable='true'"
|