Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Login servlet

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm looking for a good login servlet.
Does any one has a one or can give me a link where I can download it?

Abu Romaysa
 
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why can't you try to write one instead?
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Azz Romaysa:
Hi,

I'm looking for a good login servlet.
Does any one has a one or can give me a link where I can download it?

Abu Romaysa



Your question is not really in the spirit of this site. People generally will try to help you understand how to do something, rather than doing it for you.

That being said, its difficult to provide any sort of suggestions without knowing about the authentication requirements this login servlet needs to support.
 
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Azz,

There are a few different approaches to providing authentication in a web app.

Declarative security (or container managed security) allows you to specify roles in your web.xml, and then constrain resources so they are only accessed by specific roles.

If you are familiar with JAAS you could write a custom JAAS module that can compliment declarative security.

There is also the old standby, which involves writing a filter that applies to any constrained resources. This filter can check session data for the appropriate login information, forwarding on to the correct resource if authentication in present, and to a login module if it is not...

Tell us more about the type of requirements you have for security, and we can help point you in the right direction.
 
Azz Romaysa
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Paul for your answer,

I'm not familiar with JAAS, but I can learn it with your help if you want. What I usually used is the standard method via the webserver(Resin). In my web.xml I define the roles and the page(s), dir(s) that each rol can acces.

I also wrote my own login framework using MVC.
What I really want to do, is to try something new like the JAAS modules!

Azz
[ July 07, 2005: Message edited by: Azz Romaysa ]
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you have been using declarative security already, you are familiar with both the advantages and disadvantrages of it. JAAS is a nice alternative, although there are other, just as good ways to implement security.

JAAS is not terribly difficult to learn, but you need to start with understanding the underlying functionality of it. Here is a very good introduction to JAAS. It is a couple years old, but is still extremely informative. Give it a read, and then let me know what questions you can have and I can try and help out.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic