One login for multiple apps?

How easy is it under J2EE to implement applications which share a single login?
Specifically, what I'm implementing are a collection of snap-in applications, which will share the user database to some extent (or at least, a common part of it).. So I might have the following applications and web contexts set up..
news.ear (/news/)
forum.ear (/forum/)
games-dice.ear (/games/dice/)
.. and each of the applications running here would ask something central for the user permissions.
I can't just use a single user database, because I want to separate user information specific to one area (per-area admin priveleges, forum settings) from those which are global for the user (email address, web site).
What I'm thinking at the moment, is in the session (there's one of these for the entire server, regardless of which web application the user is in, right?) I'll store the specific user objects for each individual app under different attributes.
If it doesn't exist, and the global user info doesn't exist either, then I ask the user to login, which will associate in the global info. (How do I get to this global info from another app easily?) If the app-specific info doesn't exist in the session, but the global user info does exist, then I'll look up the username in the list for the current application, and use that to decide whether they're permitted to use that specific application.
It all seems very messy. There must be a better way to do it, right?

That's a start ..
Actually, my situation is a little simpler than that, because all those peoples' problems dealt with systems where the username/password were different between the different apps. In my case, I was thinking of the case of one username and password for the site, and a separate kind of ForumUser, NewsUser, etc object for each application, backed by a different database, and with no passwords.
So actually, all I really need (I think) is to have each application aware of the global User classes, so they can pull them out of the session and inspect the username, then use that to look up their own *User objects.
It's looking like a bunch of nearly-identical code in each app to do this .. perhaps I'll implement some sort of taglib to take care of it for me.

Similar Messages

  • How to create a single login for multiple apps on tomcat server?

    Hello,
    I am running the most recent versions of apache and tomcat on several dells with XP pro.
    When I login to an app I have created, a session variable is set, but when I browse to one of the other apps on the same computer, it does not recognize that the session variable has been set and I have to login again.
    Can somebody please suggest how, or where I can find docs, to configure tomcat to pass the session variables to other apps?
    Thank you very much.
    Or, can anybody suggest the most effective strategy for creating single-logon functionality for multiple apps with tomcat and apache running on one computer? and with tomcat and apache running on multiple computers? (i.e., each computer has tomcat and apache integrated).
    The database is Oracle 10g running on each computer.
    Thank you again.

    A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
    "Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
    hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
    Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"

  • One login for multiple applications

    Hi,
    I was using HTMLDB 1.6 and followed the following guidlines: one login multiple applications for one login to multiple applications. Basically I set the cookie name the same for both applications. It worked.
    Now I've upgraded to HTMLDB 2.0 and this doesn't work anymore. I need to login to each application. Any way around this?
    Thanks,
    Marty

    Scott
    I have an SQL report region that includes this column:
    decode((select count(*) from gr_agency_add f, gr_emp_add a where a.empid = g.userid and a.aid = f.aid and a.add_type = g.address_option), 0, '', '<a href="f?p=&APP_ID.:9:' || :APP_SESSION || '::::P9_GRID:' || g.GRID || ' target="_blank">') ||decode(trunc(length(g.topic)/30), 0 , g.topic || '</a>', substr(g.TOPIC,1,30)||'..') "Topic",
    With the
    target="_blank"
    of course I am opening page 9 in a new window. I never had a problem with this but today, in a demo to some executives, the new window apparently came up with the login page and not page 9. Would this be due to a browser setting? Unfortunately, I don't have much info about the laptop they were using.
    The demo was still a success!
    Bill

  • How to restrict login for multiple users having same Role

    Our Web Application is deployed on Tomcat 5.5
    The requirement is ?
    There are roles in application like "operator", "admin"?
    There are multiple users created for each of the above role.
    When one user of "operator" role is logged in, then
    It should not allow to login for another user of "operator" role.
    Also, if user did not log out & application gets close, then
    It should not allow to login for another user of "operator" role.
    Also, it should not allow to login for multiple requests of same user
    (using another browser instance...)
    Is it possible using session object?
    But, using session object, it will create separate objects for different users,
    So here I will not be able to restrict session object creation rolewise.
    Also, how to retrieve these multiple session objects created for different users on server?
    If anyone is having the solution please reply as soon as possible,
    Thank you.

    To tell you the truth, this is a stupid requirement. It must be an extremely fragile application.
    In any case, you will have to write your stuff for that. Probably a filter that on login, logout, and session expiration checks, makes, or removes entries in a DB (using a synchronized resource to prevent race conditions) or possibly even simply in an application context object.

  • One cheque for multiple vendors

    hi,
    is it possible to generate one cheque for multiple vendors ?
    cheque will be sent to bank and bank will deposit the amounts into vendor banks.
    Can you anybody help me?
    regards,
    kalyan

    Hi
    Yes. you can do it 
    First transfer the amount to bank and from there bank will transfer the amount to respective vendors through ther banks.
    Go for implementing automatic payment programme according to your client reqyuirement. Check  TCode F110 which is master transaction for APP.  Check at TCode F110-Environment-maintain Config.....
    Cheers
    Srinivas

  • Can i install itunes multiple times on one computer for multiple users?

    Can i install itunes multiple times on one computer for multiple users?

    Like most applications you only need to install it once for it to be available to all users. (That said it is possible to install an application and only make it available to the current user, but that's rarely needed.)
    tt2

  • How to create one delivery for multiple sales order

    Hi!! Friends,
    Can some one explain the steps to be followed in creating one delivery for multiple sales order in SAP SD.
    Regards
    AKASH
    Message was edited by:
            AKASH TAMBI

    Hi.,
                  You can combine different orders in to one delivery ,But for the customer Order combination should be checked in  the sales area data of the shipping tab,we can combine orders but the ship to party,Route,Inco terms,Shipping date,shipping point should be same,you can do in T.code VL04 & VL10
    REWARD if helpfull
    Thanks & Regards
    Narayana

  • How to create one TO for multiple TRs

    Dear All,
    how to create one TO for multiple TRs, kindly suggest me
    Regards,
    balu

    As for your question: it is discussed in sAP online help:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f841f24afa11d182b90000e829fbfe/frameset.htm
    Sorry I misunderstood your question.
    The above mentioned solution won't create one single TO from multiple TR.
    Edited by: Csaba Szommer on Aug 11, 2010 9:46 AM

  • TS1702 We use one ID for  the Apps store for 2 iPhones. In the second profile on the Macit is impossible to update apps there is a mistake. What is the decision?

    We use one ID for  the Apps store for 2 iPhones. In the second profile on the Macit is impossible to update apps there is a mistake. What is the decision?

    This happens when you both use the same Apple ID for iMessage.  To fix this you have two choices:
    On one of the phones go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with a different ID.  Note: you can still share the same ID for purchasing in Settings>iTunes & App Stores; or
    On both phones go to Settings>Messages>Send & Receive and uncheck the email address(es) shown under "You can be reached by iMessage at".  Also uncheck the other phone's phone number, if present.

  • One TPV for multiple Countries

    Hi Experts,
    Could you pls share experirnce/knowledge around having one TPV for multiple countries together. The scenario is like below:
    1. There are mutiple Countries in Central America which are small islands for whom we need to roll out the Travel and Expense Solution.
    2. The Company code is only one which contains employees from all these Countries.
    Could you tell us how can we do the setup. Should we create one TPV at the company code level. OR should we rather use some other criteria for selecting the TPV maybe at the Personnel area or Personnel Sub Area level.
    Your help is much appreciated.
    Regards,
    Vijay

    Hi Kiron,
    These things I am aware about too. My real question is if I create only one TPV for the company code and assign the Country of the Company code then what issues would this cause. To name a few pls see below.
    1) The domestic Country would always be the Company code Country so would be treated as Domestic Country and show on the Form also as domestic Country even for the employees who are from other Countries.
    2) There are setting which SAP allows differently for Domestic and International like per diem, miles cumulations. So these necessarily have to be kept as same even though local laws are different in all these countries as Domestic is only the Company code Country.
    So I need detailed analysis of what impact I will have by having only one TPV as against making many TPV like one for each Country by using some other parameter like Personnel area/Personnel sub area etc.
    Appreciate your help!
    Regards,
    Vijay

  • One invoice for multiple deliveries

    Hi Gurus,
    Can any one tell how can i create one invoice for multiple deliveries.
    Regards,
    Vinod

    one invoice for multiple delivers we can do in vf04
    we can do in vf04
    reward points if it is help ful
    Thanks
    mubeen
    Edited by: mahammad mubeen on Mar 5, 2008 10:02 AM

  • One lockbox for multiple company codes

    Is it possible to have one lockbox for multiple company codes?

    No, I don't think so. Lockbox is 1:1 for a Company Code.
    You configure Lockbox for a Company Code.
    You can use one of the 2 available Lockbox user exits (not sure which) to write a piece of code that searches invoices against the customer posted to different company codes. You will have to have the intercompany setups.
    You may find an OSS notes for intercompany clearing.
    Hope this helps!

  • One delivery for multiple STO's

    Folks,
    I have multiple STO's for the same ship-to (plant). Items due for shipping would need to be combined into 1 delivery and not 1 delivery per STO.
    Would this be possible? And if yes, how?
    Thanks,
    MZ

    Hi ,
    Yes , We can create one delivery for multiple PO's .
    Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
    Select the STO's and click on background tab. Then it creates the log
    Select the item again and press shift +F4
    It will gives the log inforamation for the STO's and select the item and press on documents tab.
    It will creates only one Delivery for all the STO's.
    Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
    then press on " post goods issue "
    Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
    Only one document will be posted for all the STO's
    Regards,
    Usha.

  • One OCS for multiple Company´s ???

    Hello,
    It´s possible to install multiple "areas" on one OCS? We want to provide a OCS for our customers. They shouldn´t see other caledars or adress-book. Only ther own "area".
    KR
    Mathias

    Hi ,
    Yes , We can create one delivery for multiple PO's .
    Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
    Select the STO's and click on background tab. Then it creates the log
    Select the item again and press shift +F4
    It will gives the log inforamation for the STO's and select the item and press on documents tab.
    It will creates only one Delivery for all the STO's.
    Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
    then press on " post goods issue "
    Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
    Only one document will be posted for all the STO's
    Regards,
    Usha.

  • One inventory for multiple ORACLE_HOMEs ?

    RDBMS version:11.2, 10.2
    Platform : AIX
    In one server , we are going to install multiple ORACLE_HOMEs (both 10.2 and 11.2). I have been asked to configure separate inventory for each ORACLE_HOME (each inventory within its own ORACLE_HOME). But i came across OTN posts which advices one inventory for all ORACLE_HOMEs .
    1. How can i create 1 inventory for all ORACLE_HOMEs . Is it by specifying an inventory directory outside all ORACLE_HOMEs in OUI when you do the very first installation ?
    2. Which one is more professional : one inventory for each ORACLE_HOME or one inventory for all ORACLE_HOMEs ?

    When installing Oracle software for the first time, the OUI will create a "global" inventory under $ORACLE_BASE.
    Depending on you OS, to locate this inventory look at "/etc/oraInst.loc" (AIX+Others) or "/var/opt/oracle/oraInst.loc" (Linux+others).
    You can add/remove Oracle homes from this inventory by using OUI or command line ./runInstaller.
    Each Oracle home may also contain an "$ORACLE_HOME/oraInst.loc" file.
    HTH
    PS: +"One inventory for multiple ORACLE_HOME is a bad practice"+ -- Untrue. Perhaps only for those that don't know how to use it.
    :p

Maybe you are looking for

  • Have tried everything in forum and cant burn cds or import them. itunes says to reinstall but doesn't fix problem.

    Hi.  I have had a message each time I open Itunes. It has varied but includes the following: Itunes was not properly installed. If you wish to import or burn cds you must reinstall itunes. Itunes helper not installed correctly - Error 7 Itunes is not

  • IMovie not picking up camera

    Hello everyone. I have seen a couple people with a similar issue to mine, but no solutions yet, so I will try to provide a little more info. I am using a MacBook Pro, and am trying to import video into iMovie from my Canon ZR80 via Firewire. Plug int

  • Subscribe and Notification via email

    We would like to use to subscribe mechanism in Oracle Portal. Instead of displaying the new items in a portlet, we wish to notifiy daily via email. Has somebody done something similar and can provide the source code? regards, André

  • Delete all content in a database table

    i want to initialize a database table just before my specific program terminate. can i use the delete databasetable Edited by: Matt on Nov 7, 2008 8:04 AM

  • Connector pane pattern bug

    LV2011, cant check other versions right now. The Connector pane pattern window doesn't mark/show your currently selected pattern. Not a big bug, but i still classify it as such. /Y LabVIEW 8.2 - 2014 "Only dead fish swim downstream" - "My life for Ku