Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 816B4200C8C for ; Tue, 6 Jun 2017 20:03:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7FF7A160BC6; Tue, 6 Jun 2017 18:03:34 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C6082160BB7 for ; Tue, 6 Jun 2017 20:03:33 +0200 (CEST) Received: (qmail 71270 invoked by uid 500); 6 Jun 2017 18:03:32 -0000 Mailing-List: contact user-help@guacamole.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@guacamole.incubator.apache.org Delivered-To: mailing list user@guacamole.incubator.apache.org Received: (qmail 71254 invoked by uid 99); 6 Jun 2017 18:03:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2017 18:03:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 72B93180351 for ; Tue, 6 Jun 2017 18:03:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=guac-dev-org.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id il8_k0-ORNqT for ; Tue, 6 Jun 2017 18:03:29 +0000 (UTC) Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E4D695FB5C for ; Tue, 6 Jun 2017 18:03:28 +0000 (UTC) Received: by mail-vk0-f46.google.com with SMTP id p62so49667336vkp.0 for ; Tue, 06 Jun 2017 11:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guac-dev-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=QQY+ErImk3jTNxLf1G8jw3ICcd67UX0i4CFYG4pMSss=; b=EHy7FyKaHKbK6RJGWdT74iTGkrjnn2porZ2tg5t6L5nq4IHaE8e4sl+oW7FebQS6sO xcvaMXtz1wl8P7Spur7uMVar55WenddlTRUue7AoJ6gIT8Kkqql9iy6LoIA+Y82WUR8i niIfG8aiky+w5bAiu9iUsxjSdjHNgqOK4c68tbXWsOGEwpj7hNXCOYJXvc7oHSXdVoOE OEhpKyFL0ZsKPP3rVnkS3JCmCE+5sUP9CVcCPeRedvTzfz8H/EqJWePSX5gVUpmC8M03 +yahWIb8Pc8Kc8imY/3poQk9dtbgdB3Ff/3yI3xTjkcWx1NIOxVKJOsr9yD+wTSMwN+M MyiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=QQY+ErImk3jTNxLf1G8jw3ICcd67UX0i4CFYG4pMSss=; b=tQ3ngEXyMhwxST2K98k8cLnPwD01SjKWTV8ZaPjN11JNatMvB0EHBYUU3Pts+mVLfA tEcxdxpT1LX69UtoJBYO+Nw3gJzmjKPU9fZbnPBHEB4qnYxL74W1qtUsMzDhRsx5QPzS T99nCwJXBCg2ABtwmoh5enSXNmdEOQbYHMCBWVW6t/LUpODaDZemtJp1fYXfQSiKq2ZT CtsCdAyfL7SJR9TYgqz8AlORtnefY/tYDt4xZgGiVJrUp3WrJFYXlr3030YYODmgjWFy IXgvp66qi0zzPJaAjPvjrAjtUx5C+2IZgYKcjfJumINNuPGbeHINhEkTgRW7fYAnA47Y QZFw== X-Gm-Message-State: AODbwcDY7+dn9lwFATCiJstwgLWl6YUHKi/shsgGYf7yTx9Oq7qBG2Nl Uwd1JByThIYsxsnyExRwKxRvZy6evHIb X-Received: by 10.31.88.6 with SMTP id m6mr14187905vkb.0.1496772208032; Tue, 06 Jun 2017 11:03:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.9.135 with HTTP; Tue, 6 Jun 2017 11:02:47 -0700 (PDT) X-Originating-IP: [157.130.212.6] In-Reply-To: <1496770271373-1060.post@n4.nabble.com> References: <1496770271373-1060.post@n4.nabble.com> From: Mike Jumper Date: Tue, 6 Jun 2017 11:02:47 -0700 Message-ID: Subject: Re: guacamole-auth-cas-0.9.13 Session not handled correctly after login To: user@guacamole.incubator.apache.org Content-Type: text/plain; charset="UTF-8" archived-at: Tue, 06 Jun 2017 18:03:34 -0000 On Tue, Jun 6, 2017 at 10:31 AM, santino83 wrote: > Hello, > > I need to use CAS for authentication, so I've used the new auth-cas > extension. It works, meaning, authentication against CAS is done > successfully and user got authenticated. However, web interface breaks > ... Do you seen any errors in your Tomcat logs? > > /api/session/data/cas/self/USER_ID_LOGGED?token=.... with status 404, > response: "no session associated with authentication provider cas". And so > on for other apis, like session/data/cas/users, session/ext/cas... etc > This is to be expected, and is not a bug. Guacamole's REST service will return HTTP 404 under normal circumstances to indicate that a particular resource is not available. If the CAS extension doesn't provide those resources, then 404 is the expected response, and the interface should adjust itself accordingly. If you see anything 500 or above, however - that would be a problem. > The only way I found as workaround was editing > CASAuthenticationProvider.java and changed the provider identifier from > "cas" to "postgresql". Everything now seems to work, but it is just an > horrible workaround Please do not do this. Even if things seem to work, I can't imagine the sort of horrible things must be happening inside the web application when this is in place. It's important that these identifiers are unique. - Mike