Philipp Zeitschel created GUACAMOLE-1673:
--------------------------------------------

             Summary: Docker Documentaion
                 Key: GUACAMOLE-1673
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1673
             Project: Guacamole
          Issue Type: Improvement
          Components: guacamole-auth-json
    Affects Versions: 1.4.0
            Reporter: Philipp Zeitschel


Hi,

the extension auth json is available within the official docker container.

But there is no documention how to set the json-secret-key

i tried it like this:
{code:java}
-e JSON_SECRET_KEY={code}
and i can see that it gets loaded:
{code:java}
14:46:05.917 [localhost-startStop-1] INFO  o.a.g.extension.ExtensionModule - 
Extension "Encrypted JSON Authentication" (json) loaded.{code}
but if i try to use it:

i
{code:java}
ronsrv ~ # curl --data-urlencode "data=$(cat encrypted)" 
https://remote.z.lab/api/tokens | jq .
{
  "message": "Invalid login.",
  "translatableMessage": {
    "key": "APP.TEXT_UNTRANSLATED",
    "variables": {
      "MESSAGE": "Invalid login."
    }
  },
  "statusCode": null,
  "expected": [
    {
      "name": "id_token",
      "type": "REDIRECT",
      "redirectUrl": 
"https://xxxx/realms/z/protocol/openid-connect/auth?scope=openid+email+profile&response_type=id_token&client_id=guacamole&redirect_uri=https%3A%2F%2Fremote.z.lab&nonce=47s3kljajr5v7mrku8luip8mlt";,
      "translatableMessage": {
        "key": "LOGIN.INFO_IDP_REDIRECT_PENDING",
        "variables": null
      }
    }
  ],
  "type": "INVALID_CREDENTIALS"
}
 
{code}
seems like it uses the configured openid authorization, thats why i tried to 
start the container only with -e JSON_SECRECT_KEY:
{code:java}
docker run --restart unless-stopped --name guacamole --link guacd:guacd -e 
JSON_SECRET_KEY=dfdd084deb513283a34f622de9287467 -d -p 8888:8080 
guacamole/guacamole{code}
but then i get
{code:java}
FATAL: No authentication configured{code}
so i think that the environment parameter is not correct.

what is the correct parameter to use the integrated json extension?

 

regards

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to