From user-return-4239-archive-asf-public=cust-asf.ponee.io@guacamole.apache.org Sat Jul 28 17:43:31 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3727B180600 for ; Sat, 28 Jul 2018 17:43:30 +0200 (CEST) Received: (qmail 27992 invoked by uid 500); 28 Jul 2018 15:43:29 -0000 Mailing-List: contact user-help@guacamole.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@guacamole.apache.org Delivered-To: mailing list user@guacamole.apache.org Received: (qmail 27983 invoked by uid 99); 28 Jul 2018 15:43:29 -0000 Received: from mail-relay.apache.org (HELO mailrelay2-lw-us.apache.org) (207.244.88.137) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jul 2018 15:43:29 +0000 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) by mailrelay2-lw-us.apache.org (ASF Mail Server at mailrelay2-lw-us.apache.org) with ESMTPSA id 9E36923D for ; Sat, 28 Jul 2018 15:43:27 +0000 (UTC) Received: by mail-lj1-f176.google.com with SMTP id j19-v6so6918796ljc.7 for ; Sat, 28 Jul 2018 08:43:27 -0700 (PDT) X-Gm-Message-State: AOUpUlF7xR6sdCzLhk7d8j3gFb/Vg4XAPHfaxiteDm1dxH4o9Ow3fFMn J04Vg5tyEShGWYjop2J4CoMS0f2DSXDxxZvd/F4= X-Google-Smtp-Source: AAOMgpf1DUsLpo7RFRU3xTmx9MmCfB0BYQo+eUaHFrIPLKm6KGOo8UcuLHbxZjZG3YWwi/Uk5Slab/mwXF6Hs662zWY= X-Received: by 2002:a2e:1290:: with SMTP id 16-v6mr8430152ljs.94.1532792605843; Sat, 28 Jul 2018 08:43:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nick Couchman Date: Sat, 28 Jul 2018 11:43:14 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Guacamole get the key of the share link connection To: user@guacamole.apache.org Content-Type: multipart/alternative; boundary="000000000000c9253c05721116cd" --000000000000c9253c05721116cd Content-Type: text/plain; charset="UTF-8" On Thu, Jul 26, 2018 at 9:15 AM YOSRA SAADALLAH wrote: > > I'm working with guacamole 0.9.14 , i want to get the share link of the > connection. So i 'm using http.get and http.post to get the key . > > At first , i got the token from > > dns/guacamole/api/tokens > > After that , i got the id connection and uuid session from > dns/guacamole/api/session/data/mysql/activeConnections?token=???? > > Now i want to get the key from : > > dns/guacamole/api/session/tunnels/uuidconnection/activeConnection/sharingCredentials/idsession?token=??? > > But i have this result : > > { > "message": "No such tunnel.", > "translatableMessage": { > "key": "No such tunnel.", > "variables": null > }, > "statusCode": null, > "expected": null, > "type": "NOT_FOUND"} > > It seems that the token has changed when i did the http.get to get the id > session and uuid connection. > One of the other developers can probably offer a little more insight on this, but I don't think the token is changing. My guess is that you are trying to retrieve this credential from the same login where you generated the SharedKey, and that isn't going to work - when you generate the SharingKey for an active connection, it is actually a separate credential that will be used to log an anonymous user into Guacamole with that single connection, which will, therefore, automatically connect. Perhaps you should start at a higher level and describe what it is you are trying to accomplish with your code - what is the end-goal functionality you are trying to achieve, and we can help work toward a solution. There may already be a way to do what you're trying to do what you want to do, or there may be an existing JIRA issue open for what you're trying to achieve, or we may be able to help you determine the exact feature you're trying to request so that an appropriate JIRA issue can be opened. -Nick --000000000000c9253c05721116cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jul 26= , 2018 at 9:15 AM YOSRA SAADALLAH <yosra.saadallah@enis.tn> wrote:
3D""

I'm working with guacamole 0.9.14 , i want to get the shar= e link of the connection. So i 'm using=C2=A0http.get=C2=A0and=C2=A0http.post=C2=A0to get the key .

= At first , i got the token from

dns/guacamole/api/to=
kens

After that , i got the id connection a= nd uuid session from=C2=A0dns/guacamole/api/= session/data/mysql/activeConnections?token=3D????

No= w i want to get the key from :

dns/guacamole/api/ses=
sion/tunnels/uuidcon=
nection/activeConnection/sharingCredentials/<=
/span>idsession?token=3D???=

But i have this result :

=
{
    "message"=
: "No such tunnel.",
    "translatableM=
essage": {
        "key"=
: "No such tunnel.",
        "variables=
": null
    },
    "statusCode&qu=
ot;: null,<=
span class=3D"m_4436134184847341660gmail-m_2512117351817217784gmail-m_47450=
47238667185556gmail-pln" style=3D"margin:0px;padding:0px;border:0px;font-st=
yle:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;l=
ine-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseli=
ne;box-sizing:inherit;color:rgb(48,51,54)">
    "expected"=
;: null,
    "type": "NOT_FOUND"
}

It seems that the token has changed when i did the=C2=A0http.get=C2=A0to get the id sessi= on and uuid connection.


One of th= e other developers can probably offer a little more insight on this, but I = don't think the token is changing.=C2=A0 My guess is that you are tryin= g to retrieve this credential from the same login where you generated the S= haredKey, and that isn't going to work - when you generate the SharingK= ey for an active connection, it is actually a separate credential that will= be used to log an anonymous user into Guacamole with that single connectio= n, which will, therefore, automatically connect.

P= erhaps you should start at a higher level and describe what it is you are t= rying to accomplish with your code - what is the end-goal functionality you= are trying to achieve, and we can help work toward a solution.=C2=A0 There= may already be a way to do what you're trying to do what you want to d= o, or there may be an existing JIRA issue open for what you're trying t= o achieve, or we may be able to help you determine the exact feature you= 9;re trying to request so that an appropriate JIRA issue can be opened.=C2= =A0

-Nick
--000000000000c9253c05721116cd--