Possible to have two login configs in same web app?

Sorry for not having tried this first, my server and webapp are in a state
of flux at this moment, but I wanted to see what the consensus is out there,
not just whether I can or cannot make something work quickly.
If I have two types of things that might be called in my Web App (WAR) in
different ways (eg, browser accessing via HTTP by users that want to login
via pretty forms, and SOAP clients that may access functionality through the
same servlets (but with alternate Servlet Path Info after the servlet name
in the URL)), is there ANY way I can have multiple login configs, each tied
to a different security constraint within that web app?
In other words, with a servlet of /frazzleblitz and security constraints
like:
<security-constraint>
<web-resource-collection>
<web-resource-name>Foo</web-resource-name>
<url-pattern>/frazzleblitz/doFooBar</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>FoobarBrowserUsers</role-name>
</auth-constraint>
</security-constraint>
and the SOAP constraint (for all users of incoming SOAP requests):
<security-constraint>
<web-resource-collection>
<web-resource-name>Foo</web-resource-name>
<url-pattern>/frazzleblitz/doFooBar</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>FoobarBrowserUsers</role-name>
</auth-constraint>
</security-constraint>
where my frazzleblitz controller knows whether the incoming request is
browser vs SOAP based by the path info after the servlet name
Can I associate the first security constraint with a FORM based login
config, and the second security constraint with a BASIC AUTH login config
since I could in theory require SOAP clients to send in credentials in a
HTTP BasicAuth header, but I can't expect a SOAP client to be HTTP
Redirected to a login form and then to enter the right credentials into a
user type form and then be redirected back to an app...
Seems to me the J2EE Security spec is really lacking in the area of
programmatic authentication (allowing my SOAP code to get credentials out of
the request envelope and call an API to login myself). Yeah, WebLogic has
the ServletAuthentication weak() API, but these apps need to be J2EE
compliant and work across J2EE servers... Anybody know of any improvements
coming in the J2EE security space to address such functionality needs?
Thanks in advance
Mike

Sorry, hit send accidentally before finishing the second security
constraint - I've fixed it up below to reflect what I meant...
"Mike" <[email protected]> wrote in message
news:[email protected]...
Sorry for not having tried this first, my server and webapp are in a state
of flux at this moment, but I wanted to see what the consensus is outthere,
not just whether I can or cannot make something work quickly.
If I have two types of things that might be called in my Web App (WAR) in
different ways (eg, browser accessing via HTTP by users that want to login
via pretty forms, and SOAP clients that may access functionality throughthe
same servlets (but with alternate Servlet Path Info after the servlet name
in the URL)), is there ANY way I can have multiple login configs, eachtied
to a different security constraint within that web app?
In other words, with a servlet of /frazzleblitz and security constraints
like:
<security-constraint>
<web-resource-collection>
<web-resource-name>Foo</web-resource-name>
<url-pattern>/frazzleblitz/doFooBar</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>FoobarBrowserUsers</role-name>
</auth-constraint>
</security-constraint>
and the SOAP constraint (for all users of incoming SOAP requests):
<security-constraint>
<web-resource-collection>
<web-resource-name>Bar</web-resource-name>
<url-pattern>/frazzleblitz/doSOAPRequest</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>SOAPUsers</role-name>
</auth-constraint>
</security-constraint>
where my frazzleblitz controller knows whether the incoming request is
browser vs SOAP based by the path info after the servlet name
Can I associate the first security constraint with a FORM based login
config, and the second security constraint with a BASIC AUTH login config
since I could in theory require SOAP clients to send in credentials in a
HTTP BasicAuth header, but I can't expect a SOAP client to be HTTP
Redirected to a login form and then to enter the right credentials into a
user type form and then be redirected back to an app...
Seems to me the J2EE Security spec is really lacking in the area of
programmatic authentication (allowing my SOAP code to get credentials outof
the request envelope and call an API to login myself). Yeah, WebLogic has
the ServletAuthentication weak() API, but these apps need to be J2EE
compliant and work across J2EE servers... Anybody know of anyimprovements
coming in the J2EE security space to address such functionality needs?
Thanks in advance
Mike

Similar Messages

  • Is it possible to have two files with the same name on my Zen To

    Hia,
    Is it possible to have two mp3 files with the same name?; I.e if I'm ripping a Bach CD, there are several tracks that have the name preludium, and I hate to do the rename.
    Also, will I be able to sync my Zen so that It will only recieve new files that have been added since I last connected my Zen to my computer?
    regards,
    Fredrik

    I believe same filename is OK because the Zen Player does not really care about filename. As far as I know, the Zen database of the tracks in the player is based on the track information such as Title, Artist, Album and Genre. This means you cannot have two tracks of the same Title, Artist, Album and Genre in the Zen Player.

  • Possible to have two login setups for different languages

    Am wondering if I can have my Imac have two login/startups, one in English and one in Chinese. Is this feasible?

    I think the answer is no. You can, of course, have the input menu showing at login so different users can use different keyboard layouts or IM's when they log in.

  • Is it possible to have two OIA instances on same box

    Hi All
    We would like to install two OIA instaces (one for Dev and One for QA) on one linux box and those will be deployed on two different weblogic servers (two web logic installations are there in this box). Is it poosible? if yes, How can we manage RBACX_HOME environment varibale? Can we define our own variable? if yes, Where do we need to replace this RBACX_HOME variable, only in .xml and .properties files or any jar files also using this variable? Please suggest on this.
    Thanks in advance !!!

    I think its possible. We can define our environment variable and use replace accordingly in .xml and .properties. JAR files do use this environment variable by resolving the path at runt-time and having two variables will not be a problem. Along with these changes, 'oscache.properties' is also required to be changed. Also while deploying on weblogic, make sure to have two different context names and force the server to use libraries present in WEB-INF/lib folder .

  • Possible to have two different QT on same machine?

    Hello there
    I need iTunes 6 for my iPod and QT pro 6 for my work. On the same computer.
    Any suggestions?
    Thanks in advance for your help!
    Gen
      Windows XP Pro  

    ok. Know what? It worked! Both quicktime running, and I can access my iTunes library again. I should have done that one year ago!! BUT!
    I uninstalled everything, and installed a 6.5.2 QT standalone on my external HD, registered and changed the name.
    What happened is that the new QT player I installed with iTunes installed itself directly on my HD without asking after recognising the old version. Which is a bit stupid, in my case (my HD is not on all the time). Should I uninstall everything, and reinstall on C:?
    Basically if I backup my C: disk with ghost or whatever and if I have to use a recovery, both programs will not be included, am I right?
    One step closer to the final answer...
    Gen

  • Is it possible to have two DADs that access the same database?????

    Hello,
    Is it possible to have two DADs that access the same database?
    One DAD would be password protected with Authentication mode Per Package and the other DAD would not require a password/login
    If it is possible can you also give suggestions about how to do this
    Thanks
    Doug

    I HAD THE SAME PROBLEM WITH SHARING MY LIBRARY WITH MY SON. WHAT I DID WIAS CREATED A LIBRARY FOR HIS USE ONLY. IN ITUNES CLICK--FILE--NEW PLAYLIST AND THIS SHOULD ADD AN UNTILED PLAY LIST IN YOUR SIDE BAR. CLICK ON IT AND RENAME IT. HE CAN KEEP ALL OF HIS MUSIC IN THIS LIBRARY. SELECT ALL OF HIS MUSIC FROM YOUR LIBRARY AND DRAG IT INTO HIS. ONCE THIS IS DONE YOU CAN THEN REMOVE HIS SONS FROM YOU PLAY LIST. MAKE SURE YOU ONE REMOVE IT FROM YOUR PLAY LIST AND NOT DELETE THE FILE.
    HOPE THIS HELPS
    G4   Mac OS X (10.3.9)  

  • HT204053 Is it possible to have two (or more) different icloud mail accounts (not alias) under the same apple id? If not what is you best advice for all family members to have their own e-mail and still share the purchases under the same apple id. Thanks

    Is it possible to have two (or more) different icloud mail accounts (not alias) under the same apple id? If not what is you best advice for all family members to have their own e-mail and still share the purchases under the same apple id. Thanks

    mannyace wrote:
    Thanks for the response.
    So I basically won't run into any trouble? I
    There should be no issues. Its designed to work like that.  You don't change Apple IDs just because you get a new device.
    mannyace wrote:
    Thanks for the response.
    Is there any chance that the phones can fall out of sync?
    Unlikely. But nothing is impossible.   Though I don;t see how that would happen. As long as both are signed into the Same Apple ID / iCloud Account they will be N'Sync. (Bad Joke)
    mannyace wrote:
    Thanks for the response.
    If I get a message or buy an app or take a photo on the iPhone 5, how do I get those things onto the iPhone 6?
    If you buy an App, you have 2 ways to get it to the iPhone6: If Automatic Downloads is enabled in Settings->iTunes & App Store, it will automatically download to the iPhone 6 when you buy it on the 5 and vice versa if you buy it on the 6, it will download to the 5.
    Alternatively, you can simply go to the App Store App->Updates->Purchased and look for the App there and download it. Purchased Apps will not require payment again. i.e They'll be free to download to the iPhone 6 once purchased.
    SMS Messages will sync over using Continuity as long as they are on the same Wifi network. Otherwise, restoring the iPhone 5 backup to the iPhone 6 will transfer all messages received up until the backup was made onto the iPhone 6.
    Images, can be transferred either through Photo Stream
    My Photo Stream FAQ - Apple Support
    Or any Cloud service you want such as Dropbox, or One Drive.
    mannyace wrote:
    Also, something i forgot to ask initially: Should I update the iPhone 5 to iOS 8 first or does that not matter?
    If you want the Continuity features as explained above you need to update the iPhone 5 to iOS 8. Otherwise its not all that important.

  • Hi can someone tell me if it is possible to have two accounts (from different countries) in the same laptop?

    Hi can someone tell me if it is possible to have two accounts (from different countries) in the same laptop?

    Hi...
    The issue is that your credit or debit card credentials must be associated with the same country where you reside to make purchases.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article
    Billing policy is the same for both the iTunes as well as Mac App Stores.

  • Is it possible to have two Firefox browsers (3&20) on the same OS?

    I have been using my 3.6.28 Firefox for more than 3 years and still want to use it in the future. Some functions are not working when I visit websites so I need to install the newest as to see them. I have Google Chrome as my second browser but would like to swap it for the latest Firefox. Read on some forum that its not possible to have two Firefox browsers on the same Win OS. Is it possible to have both my old Firefox 3 and Firefox 20 installed on the same Win XP OS as teo different programs?

    Yes it is possible, but you need to create a new profile for the 2nd version.
    http://forums.mozillazine.org/viewtopic.php?f=23&t=2249039

  • Isit possible to have two Ni elvis writer in one Vi using the same device and using 2 different NI elvis?

    Hi is it possible to have two writer in one Vi with one elvis  and also use two different elvis on one Vi? I hope someone can or know the answer.

    If memory serves me correctly, an NI Elvis board connects to a PCI card in a PC if you want 2 Elvis boards then you will need 2 PCI cards. 
    Certified LabVIEW Architect
    Certified Professional Instructor

  • Is it possible to have two phone numbers ring one iPhone?

    Is it possible to have two numbers ring one iPhone, in other words, a second line on the same phone?
    Thanks.

    You could get a Google voice account and have it forwarded to your iPhone (and other phones). This would effectively give your iPhone the capability of receiving calls to 2 different numbers and making calls from 2 different numbers. Although the Google voice capabilities on iPhone are somewhat awkward.

  • First-time user of IPod Shuffle, my husand has an IPod Touch and has hundreds of songs already on his ITunes account. If Is it possible to have two ITunes accounts so his music is not automatically loaded onto my new Shuffle?

    Just bought an IPod Shuffle; my husband has an IPod Touch and has hundreds of songs on his ITunes account.  Is it possible to have two different accounts on the same computer to prevent his music from being loaded onto my Shuffle?

    When you say "iTunes account," I think you mean iTunes library.  An iTunes "account" is what you use to sign in to the iTunes Store (your Apple ID) and purchase songs (and other media).  The iTunes library is what you have on your computer, with your songs and playlists.  That is what you use for syncing iPods.
    You can have a separate iTunes library.  If you create a new user account on your computer (using Windows) and log in to that user account, iTunes will create a new iTunes library for that account.  In fact, Windows will keep ALL of your documents separate, as if you are using a separate computer.  That is probably the best way to keep your songs in a different iTunes library.
    You can also create a separate iTunes library in the same Windows user account, if you use this procedure to switch between iTunes libraries
    http://support.apple.com/kb/ht1589
    Also, you can use the same iTunes library, and decide what songs you want put on the shuffle.  iTunes does not automatically put songs on the shuffle, unless you tell it to do so.  This document explains how to load content on shuffles
    http://support.apple.com/kb/ht1719
    NOTE:  If the iTunes sidebar (along left side of window) is not visible, from the menu bar, under View, select Show Sidebar.  When connected, your shuffle appears in the sidebar, under DEVICES.
    FYI - There is a link to the shuffle user manual on this support web page for the shuffle
    http://www.apple.com/support/ipodshuffle/

  • Is it possible to have two or more players playing video independently?

    Hi,
    I am new to JMF and I would like to ask for help.
    Is it possible to have two or more players playing video independently?
    I want to user to be able to start each player at what time he wants, not when one of the players is started the others to be started as well.
    I tried and after the vidio files are loaded the players block and stop working.

    After test I found out that the problem exists only under Mandrake 9.1. If somebody else has had the same problem please help.

  • Is it possible to have two USB drives for the IPad?  I want to bring RAW photo files from my camera, through the IPad and back to an external hard drive.  One of my cameras does not use an SD card.  How can I do this?

    Is it possible to have two USB drives for the IPad?  I want to bring RAW files from my camera through the IPad and out to an external hard drive.  One of my cameras has an SD card but the other one doesn't have a card that would fit in any of the camera devices I've seen on line.  Realted to this, I bought the IPad camera accessory.  Can I put the SD card in the device and also hook the external hard drive to the USB port of the accessory and download from the camera to the hard drive?  Can I put Lightroom or the Nikon photo editing software on the IPad?  Right now I carry a PC laptop and external hard drives with me on wildernes trips.  Internet and WiFi are not available.  Because I shoot so many photos and they're in RAW I need to download from the camera to the external drive because I run out of memory on the PC (and it has much more memory than the IPad).  I have Nikon NX software and lightroom on my PC.  I'd love to be able to reduce the weight I carry by using the IPad to edit my photos each night while on trips.  Is this possible and how would I do it?  I'd appreciate any guidance.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • I have two phones under the same apple ID and I want to put them on two separate apple IDs. how do I do this?

    I have two phones under the same apple ID and I want to put them on separate apple IDs, how do I do this??

    If you sign out of an Apple ID under Settings > iCloud, you should be prompted for an option to 'Keep on my iPhone' in regards to Contacts and other related data.  Then, when signing in with another Apple ID on that same iPhone, you should be prompted to 'Merge'.  If you do both, then you won't lose any Contacts, and the iCloud Contacts will then be merged into the new Apple ID iCloud, but also will stay on the old Apple ID iCloud.
    In the future, it might be best to post your own question thread instead of bumping a thread that is over two years old.

Maybe you are looking for

  • Error while transferring the Shopping cart to ECC system

    Hi, I am getting the below error in classic scenario, while trying to transfer the shopping cart created in SRM (v 4.0) system to ECC (v5.0) system. "06313 Material differs from material & from t he info record" I have a valid inforecord in ECC for t

  • Remove applications from 'Open With' dialog

    I have searched seemingly everywhere for an answer to this question. When I right click on an html file (or really any other file) and to go the 'open with' dialog there is a huge laundry list of applications listed. For the html files there are DivX

  • Premiere CS3 "export to Encore" missing

    So I purchased the CLP version of Premiere and receive Encore and OnLocation serials with it. When I install PP and then install Encore, I can not export from PP to Encore (grayed out). How do I get PP and Encore to talk to each other?

  • Tx2500z Finger Print Reader stopped working

    Hi all, My finger print reader randomly stopped working.  It looks fine in device manager, but when I pull up the software it says that it is disconnected.  As I said, this happened out of the blue - it had been working, then it stopped, without me c

  • How do I unblock plug-ins?

    I got an update notification from Adobe flash player and downloaded it, but everything I try to watch (YouTube, online news, etc.) has the words blocked plugin in the middle of the screen. I unchecked block pop-ups in my browser... Also, once I downl