Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How to use HTTPS in login page, and HTTP in following pages.
Dar All,

I tried to set up a Form-Based login process with JDBC Realm. It is
not secure enough.  It is better to use a secure transport such as
HTTPS (https://hostname:8443/application/p...Login/login.jsp) .

Once login, I want to use HTTP to save some overhead. I have tried to
put a switching link with absolute URL
(http://hostname:8080/application/unprotected/other.jsp). It won't
work. The session changes as the protocol changes.

How could it be done. Any article on the web showing this? Pleas help.
Regards,

Anthony

Report this thread to moderator Post Follow-up to this message
Old Post
Anthony Pong
11-30-04 02:05 PM


Re: How to use HTTPS in login page, and HTTP in following pages.
Anthony Pong wrote:
> Once login, I want to use HTTP to save some overhead. I have tried to
> put a switching link with absolute URL
> (http://hostname:8080/application/unprotected/other.jsp). It won't
> work. The session changes as the protocol changes.
>
> How could it be done. Any article on the web showing this? Pleas help.
> Regards,

Can the SSO functionality of Tomcat be of use?

http://jakarta.apache.org/tomcat/to...gn%20O
n

--
Øyvind Matheson Wergeland                     Just Another Virtual Applicati
on
Senior System Developer
Manamind AS                       Creating the Corporate Information Feed [tm]

Report this thread to moderator Post Follow-up to this message
Old Post
Øyvind Matheson Wergeland
11-30-04 02:05 PM


Re: How to use HTTPS in login page, and HTTP in following pages.
SSO is new to me and need some time to read through the pages. Thanks Wergel
and.

Anthony

Report this thread to moderator Post Follow-up to this message
Old Post
Anthony Pong
11-30-04 09:03 PM


Re: How to use HTTPS in login page, and HTTP in following pages.
Anthony Pong <ponganthony@yahoo.com> wrote:
> I tried to set up a Form-Based login process with JDBC Realm. It is
> not secure enough.  It is better to use a secure transport such as
> HTTPS (https://hostname:8443/application/p...Login/login.jsp) .
>
> Once login, I want to use HTTP to save some overhead. I have tried to
> put a switching link with absolute URL
> (http://hostname:8080/application/unprotected/other.jsp). It won't
> work. The session changes as the protocol changes.
>
> How could it be done. Any article on the web showing this? Pleas help.
> Regards,

The resource constraints in web.xml that define the roles required to
access a certain resource collection (read: URL's) can also prescribe
transport constraints. These tell the application server that that data
must be protected from tampering or also from prying eyes. In practice,
both mean that the application server will use HTTPS instead of HTTP.

Is this sufficient?


--
Oscar Kind                                    http://home.hccnet.nl/okind/
Software Developer                    for contact information, see website

PGP Key fingerprint:    91F3 6C72 F465 5E98 C246  61D9 2C32 8E24 097B B4E2

Report this thread to moderator Post Follow-up to this message
Old Post
Oscar kind
12-01-04 01:59 AM


Re: How to use HTTPS in login page, and HTTP in following pages.
I think it is in the right direction.  I found something on jguru that
the SSL connector would redirectPort to say 8443:

<security-constraint>
<web-resource-collection>
<web-resource-name>Security page
</web-resource-name>
<url-pattern>/web/login/signup.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

Difficult to say if your clue is enough for me or not.  I may need
some hours to try out the codes. Thanks Oscar Kind!

Anthony

Report this thread to moderator Post Follow-up to this message
Old Post
Anthony Pong
12-01-04 08:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Security archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:05 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.