This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of TensorFlow 2.0 in Action and have Thushan Ganegedara on-line!
See this thread for details.
Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

authentication

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we use more than one kind of authentication for an application. Like
servlet1 - FORM authentication
servlet2 - BASIC authentication
assuming servlet1 and servlet2 both belong to same application.
 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don,
I don't think you can since <login-config> is the element that specifies what authentication mechanism to use. and it is the direct child of <web-app> and the cardinality is 0 or 1.
So for a given application you can only use one authentication mechanism.
Correct me if I am wrong anyone.
Thanks
Sean
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me know if I am wrong but couldn't different web apps have different web.xml files? In that case, couldn't the authentication be different for these two apps?
Does authentication have to be the same for two servlets in the same web app?
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Authentication is to validate credentials of the client/user accessing the web-app.
Once authenicated, user may be authorized to access certain resources and not others.
Authentication is done once for the entire app, and each web-app would have its own web.xml to specify the Authentication method.
So - I guess, I don't see a reason why servlets should care about Authentication mechanism....
[ December 06, 2002: Message edited by: Rama Raghavan ]
[ December 06, 2002: Message edited by: Rama Raghavan ]
 
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic