Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #586 from calvinmclean/guacamole-conn-id-fix
Browse files Browse the repository at this point in the history
Guacamole web shell and desktop link generation update
  • Loading branch information
cdosborn committed Mar 2, 2018
2 parents b1bd009 + e470309 commit fc978da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v2/views/web_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def guacamole_token(self, ip_address):
guac_secret = settings.GUACAMOLE['SECRET_KEY']
# Create UUID for connection ID
conn_id = str(uuid.uuid4())
base64_conn_id = base64.b64encode(conn_id[2:] + "\0" + 'c' + "\0" + 'hmac')
base64_conn_id = base64.b64encode(conn_id + "\0c\0hmac")

# Create timestamp that looks like: 1489181545018
timestamp = str(int(round(time.time()*1000)))
Expand Down

0 comments on commit fc978da

Please sign in to comment.