File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes form based security on vritual hosting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "form based security on vritual hosting" Watch "form based security on vritual hosting" New topic
Author

form based security on vritual hosting

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

I am creating a site. I will host it on Virtual Hosting...For some pages I want to implement Form Based authentication...

To create form based authentication, you have to define a security role in the configuration files of the server...

My question is that is this possible in virtual hosting as the server will be shared(not dedicated).

If it is possible how can I do it...

If not then what are the alternatives.. How can I make sure that only authenticated users can access some pages. Is session the only alternative. Even for that how to check that the user is allowed to access a page. Do I need to put the code in every page or can I do it with some application level configuration..

Help of any sort will be very useful

Thanks..


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ramakanta Biswal
Greenhorn

Joined: Aug 21, 2008
Posts: 9
Hi,

Of-course form based authentication can be implemented in a virtual server.
First of all, there is no need to share the server in the virtual machine. But if it is need, then that is a different case. Just treat virtual machine is like any other machine.

Just go ahead with the steps to make the authentication needs. Package the application. Deploy it in the server reside in virtual machine.
It should work fine!

Please let me know still somthing wrong!!!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42944
    
  68
The question is not about virtual machines, it is about virtual hosting - something completely different, where you share the server instance with other web apps, and do not have complete control over the environment.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

Originally posted by Ulf Dittmer:
The question is not about virtual machines, it is about virtual hosting - something completely different, where you share the server instance with other web apps, and do not have complete control over the environment.


Ya you are right....I have found that the solution could be filters....if anybody has done this earlier it will be very useful as I am facing a strict deadline....

Thanks...
Ramakanta Biswal
Greenhorn

Joined: Aug 21, 2008
Posts: 9
Ya, I got it. Still, in virtual hosting, there is no need to share any application folder. Virtual hosting is a configuration on the server with different applications.

Form validation/ authentication is relate to an application and can be implemented with an application hosted in a virtual host.

Any light to this topic will really be appreaciable!
 
Don't get me started about those stupid light bulbs.
 
subject: form based security on vritual hosting