You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Philippe MARASSE <ph...@ch-poitiers.fr.INVALID> on 2021/03/26 12:12:42 UTC
Problem with TOTP registering between 1.3.0 and github/master ?
Folks,
For our usage, I've added some flexibility around CAS autentication
extension : the choice of CAS ticket validation between
SAML11/CASv2/CASv3 protocols. I can share it if someone is interested in.
As a second instance, we have a simple guacamole client + jdbc & totp
extensions only. And I've met a strange issue : the first login as
guacadmin was not possible, the QR code does not show up :
If I download & install the last 1.3.0 war published, it works as expected :
Has something been changed between 1.3.0 tag and master ?
Regards.
--
Philippe MARASSE
Responsable pôle Infrastructures - DSIO
Centre Hospitalier Henri Laborit
CS 10587 - 370 avenue Jacques Cœur
86021 Poitiers Cedex
Tel : 05.49.44.57.19
Re: Problem with TOTP registering between 1.3.0 and github/master ?
Posted by Philippe MARASSE <ph...@ch-poitiers.fr.INVALID>.
Yes, I can confirm that it works now.
Thank you.
Rgds.
Le 02/04/2021 à 19:56, Mike Jumper a écrit :
> This should be fixed now on git master
> via https://issues.apache.org/jira/browse/GUACAMOLE-1298
> <https://issues.apache.org/jira/browse/GUACAMOLE-1298>
>
> Michael Jumper
> CEO, Lead Developer
> Glyptodon Inc <https://glyp.to/>.
>
>
> On Mon, Mar 29, 2021 at 1:27 PM Philippe MARASSE
> <ph...@ch-poitiers.fr.invalid> wrote:
>
> Le 29/03/2021 à 18:38, Nick Couchman a écrit :
>> On Mon, Mar 29, 2021 at 10:01 AM Philippe MARASSE
>> <ph...@ch-poitiers.fr.invalid>
>> <ma...@ch-poitiers.fr.invalid> wrote:
>>
>> Never done a git bisect before :-) after 7 steps, its done :
>>
>> $ git bisect bad
>> f21a7c63ebc105eb26eb5adf91c8e65e1f99e014 is the first bad commit
>> commit f21a7c63ebc105eb26eb5adf91c8e65e1f99e014
>> Author: Michael Jumper <mj...@apache.org>
>> <ma...@apache.org>
>> Date: Thu May 28 19:01:13 2020 -0700
>>
>> GUACAMOLE-1298: Migrate to latest version of Guice and
>> Jersey 2.x
>>
>> :040000 040000 3abc05f30b6fc345a06ecd31c7c946d94bb5a687
>> bb8145256d75dc5c98e2d0ba0fbc72680e463962 M guacamole
>>
>> Luckily, the issue is straigthforward to test : no need to
>> reset database between tests, just bisect, mvn clean package,
>> deploy, restart tomcat and login.
>>
>>
>> Thanks for tracking this down. I wonder if there needs to be
>> something done for the extensions that provide their own REST
>> endpoints (TOTP, QuickConnect, etc.)?
>>
>> One more request for you, Philippe - can you watch the browser
>> network console to see if there's any HTTP error that occurs when
>> trying to retrieve the code? I can probably spin it up myself and
>> try it, but if you're able to reproduce it quickly that would be
>> helpful.
>>
>> -Nick
> I've rebuilt commit f21a7c63, from login page to enrollment :
>
>
>
> On the last request, the answer carries the QRCode and secret :
>
> {
> "message": "TOTP enrollment must be completed before
> authentication can continue",
> "translatableMessage": {
> "key": "TOTP.INFO_ENROLL_REQUIRED",
> "variables": null
> },
> "statusCode": null,
> "expected": [
> {
> "name": "guac-totp",
> "type": "GUAC_TOTP_CODE",
> "options": null,
> "digits": 6,
> "secret": "FC5OK7YUC6MU42PNPT4NGUBBPD46GLS2",
> "username": "guacadmin",
> "period": 30,
> "issuer": "CHL TEST Telem",
> "mode": "SHA1",
> "keyURI":
> "otpauth://totp/CHL%20TEST%20Telem:guacadmin?secret=FC5OK7YUC6MU42PNPT4NGUBBPD46GLS2&issuer=CHL+TEST+Telem&algorithm=SHA1&digits=6&period=30",
> "qrcode": "data:image/png;base64,iVBORw0KGg...ErkJggg=="
> }
> ],
> "type": "INSUFFICIENT_CREDENTIALS"
> }
>
> Regards.
>
> --
> Philippe MARASSE
>
> Responsable pôle Infrastructures - DSIO
> Centre Hospitalier Henri Laborit
> CS 10587 - 370 avenue Jacques Cœur
> 86021 Poitiers Cedex
> Tel : 05.49.44.57.19
>
--
Philippe MARASSE
Responsable pôle Infrastructures - DSIO
Centre Hospitalier Henri Laborit
CS 10587 - 370 avenue Jacques Cœur
86021 Poitiers Cedex
Tel : 05.49.44.57.19
Re: Problem with TOTP registering between 1.3.0 and github/master ?
Posted by Mike Jumper <mi...@glyptodon.com>.
This should be fixed now on git master via
https://issues.apache.org/jira/browse/GUACAMOLE-1298
Michael Jumper
CEO, Lead Developer
Glyptodon Inc <https://glyp.to/>.
On Mon, Mar 29, 2021 at 1:27 PM Philippe MARASSE
<ph...@ch-poitiers.fr.invalid> wrote:
> Le 29/03/2021 à 18:38, Nick Couchman a écrit :
>
> On Mon, Mar 29, 2021 at 10:01 AM Philippe MARASSE
> <ph...@ch-poitiers.fr.invalid>
> <ph...@ch-poitiers.fr.invalid> wrote:
>
>> Never done a git bisect before :-) after 7 steps, its done :
>>
>> $ git bisect bad
>> f21a7c63ebc105eb26eb5adf91c8e65e1f99e014 is the first bad commit
>> commit f21a7c63ebc105eb26eb5adf91c8e65e1f99e014
>> Author: Michael Jumper <mj...@apache.org> <mj...@apache.org>
>> Date: Thu May 28 19:01:13 2020 -0700
>>
>> GUACAMOLE-1298: Migrate to latest version of Guice and Jersey 2.x
>>
>> :040000 040000 3abc05f30b6fc345a06ecd31c7c946d94bb5a687
>> bb8145256d75dc5c98e2d0ba0fbc72680e463962 M guacamole
>>
>> Luckily, the issue is straigthforward to test : no need to reset database
>> between tests, just bisect, mvn clean package, deploy, restart tomcat and
>> login.
>>
>>
> Thanks for tracking this down. I wonder if there needs to be something
> done for the extensions that provide their own REST endpoints (TOTP,
> QuickConnect, etc.)?
>
> One more request for you, Philippe - can you watch the browser network
> console to see if there's any HTTP error that occurs when trying to
> retrieve the code? I can probably spin it up myself and try it, but if
> you're able to reproduce it quickly that would be helpful.
>
> -Nick
>
> I've rebuilt commit f21a7c63, from login page to enrollment :
>
>
>
> On the last request, the answer carries the QRCode and secret :
>
> {
> "message": "TOTP enrollment must be completed before authentication can
> continue",
> "translatableMessage": {
> "key": "TOTP.INFO_ENROLL_REQUIRED",
> "variables": null
> },
> "statusCode": null,
> "expected": [
> {
> "name": "guac-totp",
> "type": "GUAC_TOTP_CODE",
> "options": null,
> "digits": 6,
> "secret": "FC5OK7YUC6MU42PNPT4NGUBBPD46GLS2",
> "username": "guacadmin",
> "period": 30,
> "issuer": "CHL TEST Telem",
> "mode": "SHA1",
> "keyURI":
> "otpauth://totp/CHL%20TEST%20Telem:guacadmin?secret=FC5OK7YUC6MU42PNPT4NGUBBPD46GLS2&issuer=CHL+TEST+Telem&algorithm=SHA1&digits=6&period=30",
> "qrcode": "data:image/png;base64,iVBORw0KGg...ErkJggg=="
> }
> ],
> "type": "INSUFFICIENT_CREDENTIALS"
> }
>
> Regards.
>
> --
> Philippe MARASSE
>
> Responsable pôle Infrastructures - DSIO
> Centre Hospitalier Henri Laborit
> CS 10587 - 370 avenue Jacques Cœur
> 86021 Poitiers Cedex
> Tel : 05.49.44.57.19
>
>
Re: Problem with TOTP registering between 1.3.0 and github/master ?
Posted by Philippe MARASSE <ph...@ch-poitiers.fr.INVALID>.
Le 29/03/2021 à 18:38, Nick Couchman a écrit :
> On Mon, Mar 29, 2021 at 10:01 AM Philippe MARASSE
> <ph...@ch-poitiers.fr.invalid> wrote:
>
> Never done a git bisect before :-) after 7 steps, its done :
>
> $ git bisect bad
> f21a7c63ebc105eb26eb5adf91c8e65e1f99e014 is the first bad commit
> commit f21a7c63ebc105eb26eb5adf91c8e65e1f99e014
> Author: Michael Jumper <mj...@apache.org>
> <ma...@apache.org>
> Date: Thu May 28 19:01:13 2020 -0700
>
> GUACAMOLE-1298: Migrate to latest version of Guice and Jersey 2.x
>
> :040000 040000 3abc05f30b6fc345a06ecd31c7c946d94bb5a687
> bb8145256d75dc5c98e2d0ba0fbc72680e463962 M guacamole
>
> Luckily, the issue is straigthforward to test : no need to reset
> database between tests, just bisect, mvn clean package, deploy,
> restart tomcat and login.
>
>
> Thanks for tracking this down. I wonder if there needs to be something
> done for the extensions that provide their own REST endpoints (TOTP,
> QuickConnect, etc.)?
>
> One more request for you, Philippe - can you watch the browser network
> console to see if there's any HTTP error that occurs when trying to
> retrieve the code? I can probably spin it up myself and try it, but if
> you're able to reproduce it quickly that would be helpful.
>
> -Nick
I've rebuilt commit f21a7c63, from login page to enrollment :
On the last request, the answer carries the QRCode and secret :
{
"message": "TOTP enrollment must be completed before authentication
can continue",
"translatableMessage": {
"key": "TOTP.INFO_ENROLL_REQUIRED",
"variables": null
},
"statusCode": null,
"expected": [
{
"name": "guac-totp",
"type": "GUAC_TOTP_CODE",
"options": null,
"digits": 6,
"secret": "FC5OK7YUC6MU42PNPT4NGUBBPD46GLS2",
"username": "guacadmin",
"period": 30,
"issuer": "CHL TEST Telem",
"mode": "SHA1",
"keyURI":
"otpauth://totp/CHL%20TEST%20Telem:guacadmin?secret=FC5OK7YUC6MU42PNPT4NGUBBPD46GLS2&issuer=CHL+TEST+Telem&algorithm=SHA1&digits=6&period=30",
"qrcode": "data:image/png;base64,iVBORw0KGg...ErkJggg=="
}
],
"type": "INSUFFICIENT_CREDENTIALS"
}
Regards.
--
Philippe MARASSE
Responsable pôle Infrastructures - DSIO
Centre Hospitalier Henri Laborit
CS 10587 - 370 avenue Jacques Cœur
86021 Poitiers Cedex
Tel : 05.49.44.57.19
Re: Problem with TOTP registering between 1.3.0 and github/master ?
Posted by Nick Couchman <vn...@apache.org>.
On Mon, Mar 29, 2021 at 10:01 AM Philippe MARASSE
<ph...@ch-poitiers.fr.invalid> wrote:
> Never done a git bisect before :-) after 7 steps, its done :
>
> $ git bisect bad
> f21a7c63ebc105eb26eb5adf91c8e65e1f99e014 is the first bad commit
> commit f21a7c63ebc105eb26eb5adf91c8e65e1f99e014
> Author: Michael Jumper <mj...@apache.org> <mj...@apache.org>
> Date: Thu May 28 19:01:13 2020 -0700
>
> GUACAMOLE-1298: Migrate to latest version of Guice and Jersey 2.x
>
> :040000 040000 3abc05f30b6fc345a06ecd31c7c946d94bb5a687
> bb8145256d75dc5c98e2d0ba0fbc72680e463962 M guacamole
>
> Luckily, the issue is straigthforward to test : no need to reset database
> between tests, just bisect, mvn clean package, deploy, restart tomcat and
> login.
>
>
Thanks for tracking this down. I wonder if there needs to be something done
for the extensions that provide their own REST endpoints (TOTP,
QuickConnect, etc.)?
One more request for you, Philippe - can you watch the browser network
console to see if there's any HTTP error that occurs when trying to
retrieve the code? I can probably spin it up myself and try it, but if
you're able to reproduce it quickly that would be helpful.
-Nick
Re: Problem with TOTP registering between 1.3.0 and github/master ?
Posted by Mike Jumper <mi...@glyptodon.com>.
On Mon, Mar 29, 2021 at 7:01 AM Philippe MARASSE
<ph...@ch-poitiers.fr.invalid> wrote:
> Never done a git bisect before :-) after 7 steps, its done :
>
> $ git bisect bad
> f21a7c63ebc105eb26eb5adf91c8e65e1f99e014 is the first bad commit
> commit f21a7c63ebc105eb26eb5adf91c8e65e1f99e014
> Author: Michael Jumper <mj...@apache.org> <mj...@apache.org>
> Date: Thu May 28 19:01:13 2020 -0700
>
> GUACAMOLE-1298: Migrate to latest version of Guice and Jersey 2.x
>
> :040000 040000 3abc05f30b6fc345a06ecd31c7c946d94bb5a687
> bb8145256d75dc5c98e2d0ba0fbc72680e463962 M guacamole
>
> Luckily, the issue is straigthforward to test : no need to reset database
> between tests, just bisect, mvn clean package, deploy, restart tomcat and
> login.
>
I think this is due to the change in JSON annotations between the versions
of Jackson used before and after the Jersey 2.x migration. The package
names for the annotations used to override default property names changed
from "org.codehaus.jackson.annotate" to "com.fasterxml.jackson.annotation",
and classes annotated with the older annotations will not serialize to the
same JSON:
https://issues.apache.org/jira/browse/GUACAMOLE-1298?focusedCommentId=17296725&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17296725
The custom field used by the TOTP auth uses these annotations, and might
not be producing different JSON now, causing unexpected behavior by the
client-side code. This might be resolved by the changes I'm finishing up
now:
https://github.com/mike-jumper/guacamole-client/tree/fix-dependencies
Michael Jumper
CEO, Lead Developer
Glyptodon Inc <https://enterprise.glyptodon.com/>.
Re: Problem with TOTP registering between 1.3.0 and github/master ?
Posted by Philippe MARASSE <ph...@ch-poitiers.fr.INVALID>.
Never done a git bisect before :-) after 7 steps, its done :
$ git bisect bad
f21a7c63ebc105eb26eb5adf91c8e65e1f99e014 is the first bad commit
commit f21a7c63ebc105eb26eb5adf91c8e65e1f99e014
Author: Michael Jumper <mj...@apache.org>
Date: Thu May 28 19:01:13 2020 -0700
GUACAMOLE-1298: Migrate to latest version of Guice and
Jersey 2.x
:040000 040000 3abc05f30b6fc345a06ecd31c7c946d94bb5a687
bb8145256d75dc5c98e2d0ba0fbc72680e463962 M guacamole
Luckily, the issue is straigthforward to test : no need to reset
database between tests, just bisect, mvn clean package, deploy, restart
tomcat and login.
Regards.
Le 27/03/2021 à 02:12, Nick Couchman a écrit :
> On Fri, Mar 26, 2021 at 8:13 AM Philippe MARASSE
> <ph...@ch-poitiers.fr.invalid> wrote:
>
> Folks,
>
> For our usage, I've added some flexibility around CAS
> autentication extension : the choice of CAS ticket validation
> between SAML11/CASv2/CASv3 protocols. I can share it if someone is
> interested in.
>
> As a second instance, we have a simple guacamole client + jdbc &
> totp extensions only. And I've met a strange issue : the first
> login as guacadmin was not possible, the QR code does not show up :
>
>
>
> If I download & install the last 1.3.0 war published, it works as
> expected :
>
>
> Has something been changed between 1.3.0 tag and master ?
>
>
> Oh, yes, plenty of things have changed in the past 3 months. If you're
> able, could you do a "git bisect" on the code to figure out where it
> breaks?
>
> -Nick
--
Philippe MARASSE
Responsable pôle Infrastructures
Direction de l'Informatique, Support à la Communication et à l'Organisation (DISCO)
Centre Hospitalier Henri Laborit
CS 10587 - 370 avenue Jacques Cœur
86021 Poitiers Cedex
Tel : 05.49.44.57.19
Re: Problem with TOTP registering between 1.3.0 and github/master ?
Posted by Nick Couchman <vn...@apache.org>.
On Fri, Mar 26, 2021 at 8:13 AM Philippe MARASSE
<ph...@ch-poitiers.fr.invalid> wrote:
> Folks,
>
> For our usage, I've added some flexibility around CAS autentication
> extension : the choice of CAS ticket validation between SAML11/CASv2/CASv3
> protocols. I can share it if someone is interested in.
>
> As a second instance, we have a simple guacamole client + jdbc & totp
> extensions only. And I've met a strange issue : the first login as
> guacadmin was not possible, the QR code does not show up :
>
>
>
> If I download & install the last 1.3.0 war published, it works as expected
> :
>
>
> Has something been changed between 1.3.0 tag and master ?
>
>
Oh, yes, plenty of things have changed in the past 3 months. If you're
able, could you do a "git bisect" on the code to figure out where it breaks?
-Nick