Is there a standard way to plug in custom authentication code

Is there a standard way to plug in use my own custom authentication code using forms authentication when I am using servlets/jsp for my website. I read the spec and found that the spec requires servlet containers to support forms authentication, but, the process seems to be transparent to the developer. This restricts me to store user information in the format imposed by the container provider. I cannot use, MS Active directory for example, to store user attributes and use it for forms authentication. Also, I could not find any standard way in which HttpServletRequest.getRemoteUser() works. Shouldn't there be a set of interfaces abstracting authentication process, which developers can implement for customized authentication mechanisms.
Thanks
Nikhil.

Greetings,
Is there a standard way to plug in use my own custom authentication code using formsNo. There are standard "authentication mechanisms" but that's not quite the same thing. Like most things in J2EE, the "what" of things are specified but the "how" them are left to the vendor. Consult your vendor docs.
authentication when I am using servlets/jsp for my website. I read the spec and found that the spec
requires servlet containers to support forms authentication, but, the process seems to be transparent
to the developer. This restricts meFor the most part, "forms" authentication is transparent to the developer - at least, with respect to directly responding to and handling the request. The developer, however, does have some significant work to do with regard to the form itself and any associated error "pages". The point of the "standard authentication schemes", however, is to delegate the work of actual authentication processing to the container and, thereby, make it transparent to the developer (one of the many "application services" provided by the application server ;).
to store user information in the format imposed by the container provider. I cannot use, MS Active
directory for example, to store user attributes and use it for forms authentication. Also, I could notAgain read your vendor docs on how to "plug in" your own authentication handler(s). Most support it in some fashion which typically involves implementing some interface(s) and/or abstract class(es). Many also support it through their own "standard" component handlers, like an EJB invoker, where the invoked component is expected to function in a pre-determined way.
Of course, there's nothing in the specification that says authentication must be handled by the container (only that it must be supported)! You're free to implement a login mechanism through your own proprietary JSP page and/or servlet (and/or EJB), and bypass the container entirely. ;)
find any standard way in which HttpServletRequest.getRemoteUser() works.Regardless of the standard authentication scheme used (i.e. handled by the container), the user's authenticated login ID is returned by the method. Unfortunately, this means the method is useless if your own "authentication system" is used in lieu of the container - but, of course, in such a case the method should also be un-needed. ;)
Shouldn't there be a set of interfaces abstracting authentication process, which developers can
implement for customized authentication mechanisms.It's a matter of debate.
Thanks
Nikhil.Regards,
Tony "Vee Schade" Cook

Similar Messages

  • 8while generating reports is there any standard way of fectching

    8.while generating reports is there any standard way of fectching data.i.e u have take matnr from mara not from makt.etc any tips please.

    hi ,
    this can be done by the grouping option.
    only necassary objects : this will collect only the required objects .
    in data flow before : this will activate all the objects that the object is dependant.
    in data flow afterwards : this will actiivate  all the depandant objects on the in the data flow .
    in dat fow bfr n aftr wards : will activate all the objects in the data flow ..
    normally in implemantation we use bfr n aftrwards to collect all the objects in th dataflow.
    regards ..... Kumar Sarvepalli  //////

  • Is there a standard way to start a secondary event pump?

    Hi all,
    I am trying to implement a getInput() method similar to JOptionPane.showInputDialog(...).
    It doesn't show a modal dialog, but get input from a JTextField in the bottom of the frame.
    This is inspired by EMACS's minibuffer.
    getInput() must block current event dispatch thread and do event pump iteself.
    So I write some code like below. It works fine, but I suspect it's not a standard way to do so, and mabye has subtle problems.
    Doesn't anyone could point the potential problems or know a better way?
    EventQueue eq = Toolkit.getDefaultToolkit().getSystemEventQueue();
    do {
        AWTEvent event = eq.getNextEvent();
        use reflection to call eq.dispatchEvent(event)
    while (some condition dosen't meet);

    I'm not sure I quite follow what you are after here.
    Are you trying to write a custom action listener and event? Or am I mistaken?
    ie, by custom action listener and event, I mean that when you type something into your text field, if you press enter for example, it fires an event and grabs the text in there as input?

  • Is there any standard BAPI available to vendor , customer and G/L ?

    Hi all,
    any standard BAPI available to vendor , customer and G/L? I found BAPI_CUSTOMER_CREATE and BAPI_VENDOR_CREATE but when i traying to execute , then control directly taking to XD01 and XK01 initial screen's .i need to create vendor and customer master data using BAPI(data will come from legacy system).
    Other than these , is there any standard  BAPI available .Pl tell me
    Regard's,
    Pratap.

    Hello Pratap
    For customer the following BAPI is available:
    BAPI_CUSTOMER_CREATEFROMDATA1
    "This fm uses a reference customer as template for the new customer.
    " Using this BAPI you cannot create a new customer from scratch
    Regards
      Uwe

  • Is there any standard way or testing utility for EJB fail safe in cluster env

              Hi
              I got to test the beans for complete fail safe like home
              fail overing and method calls (idempodentcy) fail over, is there
              any testing utility or standard approach for this or I got to do
              it manually??
              any help on this highly appriciated
              Thanks and regards
              Aruna
              

    Look for solutions here:
    https://discussions.apple.com/docs/DOC-3521
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • Is there any standard way to approach Factor Graphs using NI tools?

    I am interested in approaching some problems using graph theory techniques.  Is there any set of tools or techniques in the NI world that might lead to solving these kinds of problems?
    Thanks.
    Hummer1

    Hello,
    There is not a Functions Palette entry specifically for performing operations pertinent to Factor Graphs. Could you clarify further the specific operations you are hoping to deploy in LabVIEW? Are you working with LabVIEW, or other NI Products? 
    There will not be a direct tutorial built into LabVIEW environment on algorithm design for advanced data structures. Many developers have discussed various techniques for managing these items. The link below references a presentation given on translating advanced data structures into graphical programming:
    Advanced Data Structures in LabVIEW
    http://decibel.ni.com/content/docs/DOC-12668
    Hopefully, the information provided provides the high level overview you were seeking.
    Cheers!
    Patrick Corcoran
    Application Engineering Specialist | Control
    National Instruments

  • Is there a simple way to create a custom item list for a List Picker field?

    I have created a List picker field and added it to my customized version of the Incident Management form. I need to populate this List Picker with custom items (Departments) and everything I am reading about how to do that is that I have to write a
    bunch on XML code. Is there a relatively simple way to populate a List Picker field with custom entries that does not require me to know scripting or XML?
    Thanks in advance for any help
    Mark

    Assuming that you have created a Enumeration picker (i.e.
    you used the authoring tool and dragged what it calls a list picker in, and then selected a list that you created in the authoring tool), then you can edit the contents of those Enum Lists using
    the Lists view in the Library pane, or by editing the XML as in the last reference. 
    You might also be interested in the
    Bulk Enum creation tool, which automates the process of creating that XML

  • Standard way to en/decrypt using PKI wrapped symetric key

    Is there a standard way to benefit from a symetric cipher's performance, but also send/wrap its PKI protected, secret key in the same stream (or array, etc)? Or, does one have to manually construct some protocol to do this, ala PKI encrypt a key and prepend it s known length to the cipher text/stream, and reverse on the other end?
    What I'm basically looking for a general purpose equivalent to SSL, except applicable to non-network operations also (and one that doesnt neccesarily have two way cipher/key negotiation)

    Use the PKCS#7 message format ("envelopedData" and "signedData").
    Please check the specification of PKCS#7 (as known as CMS, Cryptographic Message Syntax) in the RFC 3369. There are variations in CMS, like the "Compressed Data Content Type for Cryptographic Message Syntax (CMS)" (RFC 3274) or the "Password-based Encryption for CMS" (RFC 3211).

  • My  daughter got an itunes gift card and scratched off the redeem code.  Is there any way to find out what the code was?, my  caughter got an itunes gift card and scratched off the redeem code.  Is there any way to find out what the code was?

    Ny daughter got an itunes gift card.  She scrathed off the entire redeem code, so now she can not redeem it.  Is there any other way to find out the redeem code?

    Try Here  >  http://support.apple.com/kb/TS1292
    If no joy...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    And there is this...
    http://www.apple.com/hk/en/support/itunes/store/giftcard/

  • IS THERE ANY SIMPLE WAY TO RETURN SPEED PERFORMANCE TO FACTORY SPEED AFTER ABOUT 3 YEARS OF RELATIVELY STANDARD USE?

    Everyone is often so quick to bash all these 'cleaning' utilities but rarely give any solutions.
    There's a lot of critiques and endless lists of what NOT to do to avoid performance problems.
    My Powerbook is 3 years old. It runs like molasses... SLOW.
    I'm not a computer geek, but I'm smart and understand quite a bit more than a newbie.
    Do I need a degree in computer engineering to fix/speed up my mac?
    Yes, I know, the cleaning utilities suck. But is it really true of all of them?
    I'm not totally convinced because there seems to be such a huge market for them.
    Sure, there's a huge market for bottled water too, so maybe they are just useless/marketing crap, but I really want to return to my original speed performance quickly and can't seem to find out if it's possible with a utility.
    I'm not willing to sit down for 3 hours and study line by line b.s. about how to fix it.
    I have no problem if it's not fixable. I've always assumed operating systems outgrow their hardware's capacity to keep up, and sell my old one for a new one, no prob.
    I don't care, really, but again, I'm curious if there is any quick, easy, user-friendly utility or method that I can use to return the speed performance I had as recently as a year ago? (I'd be satisfied with that).
    Anyone willing to bite on that? Anyone willing to not critique, complain, tell me what NOT to do and actually know a solution?
    IS THERE ANY SIMPLE WAY TO RETURN SPEED PERFORMANCE BACK TO (OR CLOSE TO) ORIGINAL FACTORY SPEED AFTER ABOUT 3 YEARS OF RELATIVELY STANDARD USE?
    The only thing I may have done outside of the norm was some video editing, but very little.

    Look for solutions here:
    https://discussions.apple.com/docs/DOC-3521
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • Is there an easier way to transfer your iTunes library on windows to a mac than copying the library to a usb and plugging the usb into the mac and put the library in the iTunes file

    is there an easier way to transfer your iTunes library on windows to a mac than copying the library to a usb and plugging the usb into the mac and put the library in the iTunes file? I recently swapped to Mac and this is how i moved the library from windows to mac and library is in tact but is there an easier way? My cousin just imported her cd's again, but it was harder for me as i have an ipod with over 150 apps and i needed to move them. i think it would be helpful if i knew of an easier way so i can help a friend move his. Thanks

    The general method of use is to download a script (double-click or right-click and use Download or Save As...) to a folder of your choice, e.g. your Desktop, Downloads folder or create a folder at ...\iTunes\Scripts. Select a playlist or highlight some tracks in iTunes and then double-click on the script to execute it. If no specific tracks are selected the script will try to work with all tracks in the current playlist or sometimes the entire library.
    tt2

  • I just bought an AirPort Extreme system over this weekend and I am having problem with setting it up. I plugged the cable as explained in the manual but there is no way I can get a steady green light. I all see is flashing amber light. Can anyone help me,

    I just bought an AirPort Extreme system over this weekend and I am having problem with setting it up. I plugged the cable as explained in the manual but there is no way I can get a steady green light. I all see is flashing amber light. Can anyone help me,

    Think you need to provide some more details about what you are connecting

  • I was wondering if there is a way to shut off the install mode on my G3 every time I plug in the USB to my Mac. I have an android manager software Mobile Go that this seems to be preventing it from connecting

    I was wondering if there is a way to shut off the install mode on my G3 every time I plug in the USB to my Mac. I have an android manager software Mobile Go that this seems to be preventing it from connecting

        as62467 We appreciate your G3 question! Let's see how we can help. What you are able to adjust is the USB connection mode by going to the home screen and selecting'recent apps' (in the touch keys bar), settings,storage, the menu (the 3 tiny dots) and tap usb pc connection. If you do not want the software to try and install choose either the internet connection or camera option. Let us know if this helps.
    SheritaH_VZW
    Follow us on Twitter

  • My computer crashed is there a way to plug my iphone into itunes without losing everything on it

    Recently my computer crashed and I had to reprogram it.  I'm wondering if there is a way after downloading itunes that I can plug my phone into it and not lose everything I have stored in it?

    You won't lose everything on your iPhone when syncing with an empty iTunes library, but you will lose all iTunes content on your iPhone, and the same for photos on your iPhone that were transferred from your computer.
    This is just one of the reasons why maintaining a backup of all important data on your computer's hard drive is important - stored on an external drive or some other external media used for backup purposes only, which should include your iTunes library. The iPhone is not designed or intended to be a backup storage device.
    Did you lose all important data on your computer's hard drive, or just your iTunes library?
    iTunes includes an option to transfer iTunes content from an iPod, iPad, or iPhone that was purchased/downloaded from the iTunes store, but this is for iTunes content that was purchased/downloaded from the iTunes store only.
    First you need to re-authorize your computer with your iTunes account with iTunes. With your iPhone connected and without syncing, at the iTunes menu bar go to File and select Transfer Purchases From - the name of your iPhone. This should include all 3rd party apps on your iPhone.

  • Is there any way to plug a memory stick into an iMac

    Is there any way to plug a memory stick into an iMac

    When you say "Memory Stick" I interpret that to mean a Sony Memory Stick from a Digital Camera or other Sony device. If that is correct yes you can plug it in, you need a USB Memory Stick card adapter like this one from Amazon

Maybe you are looking for

  • How to get the last update time for a table ?

    I want to know the last change of the table data , for example, a record has been changed, how can i get that time? Regards, Lament

  • I can't download apps to my I pad mini

    Ok so I tried to download a Free app but it told me to sign in. That mention that I had to put a card in and when I do it says it's declined and so I can't get any apps and I just got the update. It wasn't doing this before it.

  • Error message setting 'Location' property on a broken/orphaned track

    Hi, I'v written a tool in c# to repair broken links of tracks in iTunes. It worked fine with iTunes 9.x. But now, in iTunes 10.0.0.68, an exception error with a wrong error message ("Value does not fall within the expected range.") will be thrown, wh

  • Problem with the "make config" command

    Kernel Compilation from Source for New Users I download the linux-2.6.37-ARCH source files and copied them to /usr/src/.Then i  used "cd linux-2.6.37-ARCH" to move to that directory so i could use the "make config" command.Now,when i use "make config

  • Problem adobe flash player with facebook

    good evening sorry for my english; i'm italian and i don't speak very well english . i have got a problem with ( i suppose) adobe flash player ; when i enter in facebook (with internet explorer) and i play a video of youtube in the facebook's home th