necouchman commented on a change in pull request #471: GUACAMOLE-753: Add TOTP 
auth method to Docker image
URL: https://github.com/apache/guacamole-client/pull/471#discussion_r397108205
 
 

 ##########
 File path: guacamole-docker/bin/start.sh
 ##########
 @@ -536,6 +536,21 @@ END
 
 }
 
+##
+## Adds properties to guacamole.properties which configure the TOTP two-factor
+## authentication mechanism.
+##
+associate_totp() {
+    # Update config file
+    set_property "totp-issuer"    "$TOTP_ISSUER"
+    set_property "totp-digits"    "$TOTP_DIGITS"
+    set_property "totp-period"    "$TOTP_PERIOD"
+    set_property "totp-mode"      "$TOTP_MODE"
 
 Review comment:
   I think we want `set_option_property`, right, since all of these already 
have default values?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to