Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EF4A618F88 for ; Fri, 5 Feb 2016 00:15:55 +0000 (UTC) Received: (qmail 74763 invoked by uid 500); 5 Feb 2016 00:15:52 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 74692 invoked by uid 500); 5 Feb 2016 00:15:52 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 74680 invoked by uid 99); 5 Feb 2016 00:15:52 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2016 00:15:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id EE07A1A0516 for ; Fri, 5 Feb 2016 00:15:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2 X-Spam-Level: ** X-Spam-Status: No, score=2 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=smtpcorp.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id E_aX72axuig3 for ; Fri, 5 Feb 2016 00:15:50 +0000 (UTC) Received: from a2i631.smtp2go.com (a2i631.smtp2go.com [103.47.206.119]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id D026D20468 for ; Fri, 5 Feb 2016 00:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a0-2; h=Feedback-ID:X-Smtpcorp-Track:To:From:Subject: Message-ID:Date; bh=hvkhVgSeduMYvNJdHGQceFxjk1wTr3bF/oFia5TRneM=; b=WPotVujva 6RwcAKRuvDuHd7fi1l/rwd+Fyrz+1JcshSN/tmBJI60CybL/DqGNW/X0i28xF4OvgrDnmyOtWpjTe 2+huwTFU0s0kv4PKMhxz5h/NLQhv6eM2X3LrA9tHZ/iluBbUqrAK+sXwZaWtLbWdbYSOO7x7/2nD+ SNNaLA+FtC6mFpfJYTR+9/wmIszDudveHpV1i+45HXQeFL5TvrotRzYUpmDuSP6Hyv+zEwSRrVuSG KoQSJ8+9MEpaz8Wf2b2BNDEYyK4mfe9L21lNTOZSUJcA8R4V19FRp2yoLfSkt43jgrux8/iYvc+wY cdv/RY+Yt2KuWxny4QYlrMQ9Q==; X-Gm-Message-State: AG10YOTEjgex1u2/TjEGbjQk/Kxh6XG21Z/HOrj5G9qGO3Amh54O4Cg3c6TgI9mnPG8Q8M9yPqgUek1/WbcUDw== MIME-Version: 1.0 X-Received: by 10.50.110.99 with SMTP id hz3mr6443793igb.16.1454631343288; Thu, 04 Feb 2016 16:15:43 -0800 (PST) In-Reply-To: References: Date: Thu, 4 Feb 2016 19:15:43 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Should tomcat form login offer redirects to login page besides forward? From: Bernhard Lenz To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=089e0111e06e7f0702052afac03e X-Smtpcorp-Track: 1aRl3IeLeuI4KQ.s8XzDLIYm Feedback-ID: 19068m:19068aS22xhy:19068s80CkeYPEy:SMTPCORP X-Report-Abuse: Please forward a copy of this message, including all headers, to --089e0111e06e7f0702052afac03e Content-Type: text/plain; charset=UTF-8 Hi Mark. Unfortunately CAS doesn't support Tomcat 8 or 9 and the documentation is often outdated and sometimes messy. I feel Tomcat is so close to perfect with its SingleSignOn valve and Realms that supporting a global login page is just the dot on the I. I'm new to the apache process... How can I best get my hands dirty and find the edge cases? Would I create a folk in GitHub and in case I get it to work submit a pull request? Sincerely Bernie On Thu, Feb 4, 2016 at 12:58 PM, Bernhard Lenz wrote: > Are there any Tomcat developers in this forum that would like to pick up > below suggestion? I'm very interesting in hearing your opinion. > > Sincerely > Bernie > > On Wed, Jan 27, 2016 at 3:54 PM, Bernhard Lenz wrote: > >> I'm currently researching an architectural issue which has been pondering >> me for quite some time now. >> >> Tomcat is probably one of the most widely used web servers out there. >> It has some really nice build in features to implement authentication >> and authorization using >> Form Based Authentication and the SingleSignOn valve. Also the database >> realms with configurable table and column names and hashing of passwords >> are exactly what is needed to develop state of the art web sites. >> >> In my career I've almost exclusively come across (or worked on) web sites >> which consist of multiple war modules protected by a single site wide login >> page. Examples are myprofile.war for a customer to update his information, >> and admin.war for internal users to administer the site, etc etc. All wars >> are typically protected by a single login page which matches the style of >> the web page. >> >> However it appears that (based on the Servlet Reference Implementation) >> the login page can only live within each war's servlet context and >> therefore the login page must be copied into each single war. This makes it >> kind of hard to maintain the login page, and in case the page needs to be >> modified it must be changed in multiple places (namely in each war) instead >> of just in one place. >> >> In order to adapt Tomcat better to today's web development practices I >> would like to suggest an enhancement for Tomcat to provide some kind >> of host level declaration of a login page which overrides the web.xml >> definition or takes affect if the login page is not declared inside the >> web.xmls. For this the FormAuthenticator's forwardToLoginPage method would >> need to be modified to also offer a (conditional) redirect besides just a >> forward. In my simple mind such a change shouldn't be too difficult to >> implement. >> >> I also looked at glassfish's clone of Tomcat and saw that the glassfish >> team did add a redirect to the forwardToLoginPage method, although it >> appears not exactly for this purpose >> >> I'm curious to know your thoughts about this enhancement and how to best >> proceed with it? >> >> Sincerely >> Bernie >> > > --089e0111e06e7f0702052afac03e--