cancel
Showing results for 
Search instead for 
Did you mean: 

Single Sign On with PDA for F-1

Former Member
0 Kudos

Hi,

is singgle sign on with PDA for f-1 possible ? if so, how can we proceed on that ?

Regards,

Pavani

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Pawan ,

I would require some assitance on BB SSO with Portals . Can you lay down steps in formulating the same .

Thanks and Rgards

Sandeep

Former Member
0 Kudos

Hello Pavani,

What is this PDA for F-1?

Can you explain it more?

Is it related to SAP NetWeaver Mobile Client?

Will it be communicating to SAP System?

Thanks & Regards,

Abhijit

Edited by: Abhijit Suresh Shingate on Dec 15, 2009 9:22 AM

Former Member
0 Kudos

Hi ,

PDA is Personnel Digital Assistnat .Is it possible to work with SSO in PDA.

Regards,

Pavani

Former Member
0 Kudos

Hi Pavani,

Thanks but you have mentioned PDA for F-1...now what does F-1 means here?

Are you using SAP NetWeaver Mobile PDA client?

Thanks & Regards,

Abhijit

Former Member
0 Kudos

HI,

My requirem,nt is like this.

i want to create an application using in Webdynpro java and want to run the application from PDA.when ever we are running this application from PDA is it possible to go with SSO in PDA ?(already we have worked on the same scenario in case of Black berry , it worked fine).so want to know is it possible to go with SSO in case of PDA's also like in BlackBerry handhelds?

Regards,

Pavani

Former Member
0 Kudos

Hi Pavani,

SSO from PDA is possible.

Login to portal using your application and portal will return MYSAPSSO2 ticket.

But retriving this ticket so that it will be useful in your application, is dependent on how you will be using it.

Here are you talking about Mobile Webdynpro Online or Mobie OCA 7.1?

Thanks & Regards,

Abhijit

Former Member
0 Kudos

Hi ,

here we are using mobile web dyno online.

could you pls explore on the steps to be followed in case of PDA SSO Part ?

Regards,

Pavani

Former Member
0 Kudos

Hi Pavani,

I assume you already have configured the webdynpro online for SSO as you already tested it with Blackberry.

I think you can do something like following.

1. Create a simple html page with the link to your webdynpro online application and put it on the SAP NetWeaver Portal system.

2. Call this page from your PDA browser. It will ask the portal user credentails.

3. Provide the portal user credentails. Then you wil see your simple html page with the link to your webdynpro application. This step will get the MYSAPSSO2 ticket from portal and set it as the cookie

4. Click on the the webdynpro online application link.

I am not completely sure but this should work.

Another way is by using a java program which will fetch the SSO ticket for you.

Launch the java program, which will launch a html page which will set the cookie using javascript and call your webdynpro online application URL.

Following is the sample code.


public String getSSOTicket(String portalServerHost,int portalServerPort, String portalUser, String portalPassword) throws Exception{        
        String ticket = null;
        // Create the URL instance to the ticket issuing system
        URL url = new URL("https://"+portalServerHost+":"+portalServerPort+"/irj/portal?j_user="+portalUser+"&j_password=" + portalPassword);
        URLConnection connection = url.openConnection();
        connection.setRequestProperty("content-type", "application/binary;charset=UTF-8");
        int responseCode = ((HttpURLConnection) connection).getResponseCode();
        if (responseCode == HttpURLConnection.HTTP_OK) {
            String headerName = null;
            for (int i=1; (headerName = connection.getHeaderFieldKey(i))!=null; i++) {
                if (headerName.equals("Set-Cookie")) {                  
                    String cookie = connection.getHeaderField(i);               
                    if (cookie.indexOf("MYSAPSSO2") != -1) {
                        ticket = cookie.substring(cookie.indexOf('=') + 1, cookie.indexOf(';'));
                        break;
                    }
                } 
            }
        }    
        return ticket;
}

Thanks & Regards,

Abhijit