How to implement a single sign on  feature using java.

Hi,
I have a question like , How to implement **single sign on** feature in java without using any third party framework or tool like LDAP or any other which is available in the market.
Actually the situation is i have all security information into the table and those information is used for single sign on . If a user logged in from a jsp loging page all the security role should be assigned to that particular user.
We can do this using LDAP but i am not supposed to use the LDAP or any third party tool . I have to write a java class for that .
please suggest me the method , how to implement this in a web application.
Edited by: Rakesh_Singh on Mar 19, 2008 11:55 AM

you could setup a token that specifies a user is authenticated. other applications that u want SSO can check for existance of this token
if it is HTTP - you can save the token as a cookie and downstream apps look for this token
yr code needs to validate that the token/cookie was indeed a valid one and not subject to man-in-the middle attack.

Similar Messages

  • Does Single Sign on feature affect the eCATT test script

    Hi
    I am having problem with eCATT test scripts when running on the PC with single sign on feature .
    I am able to run the eCATT test script on PC with out single on feature .when I am trying to run the same eCATT script on the PC with single sign on feature it gives error message
    When the test script is executed it open up new session and tries to log on system and then it comes out of the Session  and gives the error message.
    Error When starting replay session Possible causes
    1) Scripting is deactivated in Replay system .
    2)User has not logged on with in given time or user has no Dailog rights .
    3) Too Many Sessions are open.
    Can you please Suggest me how to overcome this problem .
    The PC with single sign on feature is using SAP GUI 7.1 Version and the PC with out single sign on feature is using SAP GUI 7.2 Version . Will this affect the test script.
    Thanking you .
    Regards
    Kiran

    Hi
    The issue is resolved . Once the single sing on program is disabled on the machine the eCATT test scripts are working fine now .
    Thank you .
    Regards
    Kiran

  • How to Implement a Single Folder - Multiple Authors Scenario für NW 7.3?

    Hello,
    is a version "How to Implement a Single Folder - Multiple Authors Scenario" for NetWeaver 7.3 planned?
    Best regards,
    Arnold Gallemann

    Hi Detlev,
    thanks a lot for sharing your work!
    Due to the reason we need a different configuration in KM, I changed e.g. some values in the .cc.xml and .co.xml files. I rebuild the project and checked the created EAR file. I noticed that the ConfigArchive file in EAR file still has the old values. It seems that SAP NetWeaver Developer Studio 7.3 is not recognizing in a portal application project the configuration of the src.config folder anymore. To test this, I removed the initial provided ConfigArchive in the folder dist\PORTAL-INF\config\ from your project. I rebuild it and the ConfigArchive in the EAR file wasnu2019t included.
    I found in the documentation (http://help.sap.com/saphelp_nw73/helpdata/de/42/60aec0032c1422e10000000a114cbd/frameset.htm) the SAP Note 1572813, which would describe how to use KMC wizards in SAP NetWeaver Developer Studio 7.3. But the article is currently not released to public.
    In addition I have discovered, that it is possible to include the src.config folder in the build process if the project is set up as a development component (see for details bullet point Optionally of http://help.sap.com/saphelp_nw73/helpdata/de/42/60aec0032c1422e10000000a114cbd/frameset.htm). This works. But later on I am facing another problem: I am missing the entry KMC-CM to add it as a dependency for the development component.
    Best regards
    Mario

  • Oracle 9iAS Single Sign On Feature

    I read and headrd about Oracle 9iAS's single sign on feature. Can someone explain it me with a practicle example.
    We are developing jsp/ servlet applications. We make our appilcations to sign in the user an one time and we store users data in the computer with a cookie. Do 9iAS use mean this thing as SSO? If then, do 9iAS use cookie to impliment SSO?
    Ranjith
    [email protected]

    you can register your application as a partner application with oracle Single Sign on, single sign on sets the cookies with authenticated information which your application can look for validation.
    refer
    http://download-west.oracle.com/docs/cd/B14099_13/idmanage.htm

  • Oracle Single Sign On Feature

    I read and headrd about Oracle 9iAS's single sign on feature. Can someone explain it me with a practicle example.
    We are developing jsp/ servlet applications. We make our appilcations to sign in the user an one time and we store users data in the computer with a cookie. Do 9iAS use mean this thing as SSO? If then, do 9iAS use cookie to impliment SSO?
    Ranjith
    [email protected]

    I read and headrd about Oracle 9iAS's single sign on feature. Can someone explain it me with a practicle example.
    We are developing jsp/ servlet applications. We make our appilcations to sign in the user an one time and we store users data in the computer with a cookie. Do 9iAS use mean this thing as SSO? If then, do 9iAS use cookie to impliment SSO?
    Ranjith
    [email protected]

  • How does one know whether or not they use "Java applets"?

    The support doc for the recent Java update (Update 8, for Snow Leopard), entitled "About Java for Mac OS X 10.6 Update 8," advises the following:
    If you do not use Java applets, it is recommended that you disable the Java web plug-in in your web browser.
    How does one know whether or not they use "Java applets"?
    Thanks.
    URL:  http://support.apple.com/kb/HT5243

    K.S. wrote:
    dymar wrote:
    Also, how would I know that a missing applet was causing some feature(s) not to work in a situation where no error mesage was returned?
    Sometimes you have to dig to find out: http://earthnow.usgs.gov/earthnow_app.html
    doesn't tell you directly, but it is mentioned in the FAQ that Java is required. If the content is appropriate, you can always ask here.
    Thanks.  According to that webpage, my "Java is out of date."  When an error message like that is returned, I guess it's clear that "it's a Java problem."  Presumably, one would then just go to java.com and download the applet if he/she wanted to view the webpage.
    I was wondering more about situation when unexplained problems that involved missing Java applets weren't noted in error messages.
    But maybe I'm worrying about something that doesn't really need to be worried about.

  • How to read a data from USB port using JAVA

    hi all,
    i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
    Advance Thanks!!

    You can do this. Please use this link
    [http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
    What research did you do of your own? Have you done some testing application and tried yourself??

  • How to create a table in the file using java code.?

    HI,
    I should export the data from the view objects to a word document. I have done that but I should
    display the data in the form of a table.
    Kindly come up with the necessary information on how to create a table in the file using java.
    Thanks,
    Phani

    Hi, Thank you for responding to my query.
    The below are the details of my code.
    DCBindingContainer dcBindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding StudentDetailsContent =
    (DCIteratorBinding)dcBindings.get("StudentView1Iterator");
    OutputStreamWriter w = new OutputStreamWriter(outputStream, "UTF-8");
    Row currentRow =
    StudentDetailsContent.getRowSetIterator().first();
    Object a[]= currentRow.getAttributeValues();
    int i;
    for(i=0 ;i<=a.length;i++){
    w.write(a.toString());
    w.write(" ");
    w.flush();
    I am usning this coding to achieve the task of exporting data to file.
    I need to display this information in the table that is where I need help from you people.
    Thanks,

  • How can we get requester's user id using java code

    Hi,
    How can we get requester's user id using java code?
    eg: If i had logged in as xelsysadm and request a resource for user uid101 on the userid field it should display uid101 and not xelsysadm.
    also,
    I have a resoure "A" which on revoking should also revoke resources B and C. How can it be done. Resource A, B, and C are 3 different resource objects.
    ==Thanks,
    doki

    Ok, so there is a way, but it's not available during submission. You can use the findRequests api. From the result set, get the "Requests.Consolidated Data Value" value. In this information, you will get an xml formatted data. It provides the list of users on the request on the left side after submission. After the request is completed, this value is available. Upon completion, you could get the request information, get this value, and parse the information for user ids.
    In the same adapter, use the following API:
    formIntf.setObjectFormData(objInstanceKey, formHash)
    The formHash is a hashtable containing the field name on your object form, and the values you wish to populate it with. You could create a textarea box on your object form and populate the userids for who the request is for.
    However, this makes absolutely 0 sense. When you get a request, the list of userids are listed right there on the request.
    -Kevin

  • How to send sms to mobile from tomcatserver using java code?

    Hi,
    Could you please let me know that,
    How to send sms to mobile from tomcatserver using java code? Please provide the code snippet.
    Thanks in advance.

    Yes, but something needs to send that message. You can't just take an arbitrary computer and send an SMS, it does not have the hardware to do that.
    So either you have a mobile through which you do that or more likely - you use some sort of online service to do it. Whatever choice you make will determine what code you will have to write to get it done. Nobody is going to deliver the code to you, that's your job. It is also your job to figure out what service you are going to use.

  • How to install for Single Sign-on?

    Hello Community
        When you install a Sharepoint 2013 Server farm
    how do you install the Sharepoint 2013 Server farm
    so that it is setup for "Single Sign-on (SOS)"?
        Thank you
        Shabeaut

    Hi Shabeaut,
    Yes, in this case if your users who are in different domain can are able to log in to SharePoint manually you can enable trust relation for all types
    of browser, here are the links you can follow.
    http://expressionsinweb.com/2011/05/17/allow-the-pass-through-of-window%E2%80%99s-credentials-to-sharepoint/
    http://blog.fpweb.net/sharepoint-credentials-prompt-quick-tip/#.VKHarl4B4
    and for understanding the concept of ADFS with SharePoint and what other claim provider to implement SSO see below.
    http://www.slideshare.net/thomasvochten/spsuk2013-adfs-sp2013
    Krishana Kumar http://www.mosstechnet-kk.com
    Please mark the replies and Proposed as answer if they help and solve your issue

  • How to implement this typical sign workflow? Urgent

    Hi Adobe Experts,
    I am new to LC (two months only). Recently company is doing some evaluation on LC 8.2 and my boss assigned the following task to me  (I simplified it):
    Form: (Enclosed)
    * Two text fields: CommentTextField1 and CommentTextField2
    * Two signature fields: SignatureField1 and SignatureField2
    I've associated the SignatureField1 to lock CommentTextField1 and associated the SignatureField2 to lock CommentTextField2.
    The progress to implement is:
    Step 1) Ray Woodard open the form in workspace, type in CommentTextField1, Sign the SignatureField1, Submit.
    Step 2) Alex Pink open the form in workspace, type in CommentTextField2, Sign the SignatureField2, Submit.
    Any suggestions on how to implement the progress? Please help! Thanks a lot!
    (What I am able to accomplish so far is the step 1, but I am not confident about that. Please point me the right solution. Should I use xfaForm or Document Form, render/submit as default or PDF, submit as XDP or PDF etc...? I am so confused and frustrated now!)

    Steve, thank you so much!!!
    Your example helped me a lot. I am able to run the process, but I still have three doubts:
    1) When I set "Submit As" to "PDF" rather than "XDP" by default, I am not able to submit the form in the workspace client with "Adobe Reader" installed. But I am able to submit the form in the workspace client with "Adobe Acrobat" installed. Is it normal?
    2) What does "Form Bridge" do in this whole process here?
    3) If I don't want to hard code the submit URL  in the form, do I have another option, like using other renders?
    Thanks again!
    Wayne

  • Single Sign on feature for flex porlet?

    Hi All,
    I would like to create a portlets using flex & blaze dataservice. I need to know if i use Oracle Application Server Portal,
    can i get single sign on support?
    i have seen the new oracle metalink has been created & deployed in oracle App server. i think that is a porlet?
    Am i correct?
    Can i get sso support for flex?
    Thank you all.
    Edited by: ADFBCUser on Mar 22, 2009 11:37 PM

    Hi,
    I would very much like to know how one can incorporate a flex module into Portal. Sample code and steps would be absolutely great. I just need a simple app example to get going.
    Frank

  • How to implements the single thread modal?

    how to implement the singlethread modal in servler/jsp?

    Do you mean 'model?' and 'servlet?' and are you referring to the interface with that name? which your servlet class just has to declare that it implements?

  • How to By pass single sign-on

    Hi,
    I am working in Erecruitment. When I am trying to acces the BSP page, the following error came.
    [<b>b]Logon Error
    Logon requires activated Single Sign-On on this server. This is not the case. Contact your system administrator
    </b> 1. Is there anyway we can by pass this error.</b>
    Thanks
    Uday

    Check the BSP application <b>sytem</b> and page <b>sso2test.htm</b> to check out whether SSO is enabled.
    Follow this steps if SSO is not enabled in your BSP system to configure SSO:
    1.Run RZ10 transaction.
    2.Add the following parameters:
    login/accept_sso2_ticket 1
    login/create_sso2_ticket 1
    login/ticket_expiration_time Default = 60 hours
    3.Then Restart your server.
    Then in the transaction SSO2 check whether logon tickets are accepeted..
    You can run sso2test.htm in your system BSP application whether SSO2 is enabled or not.
    Refer to SAP help documentation for more info.
    Hope this helps!
    Regards,
    Ravikiran.

Maybe you are looking for