on 09-20-2008 10:42 AM
Hi everyone,
how is the proposed way to using Java Connector 3 Client with Single Sign-On for the two scenarios:
- Using SAP Logon Ticket
- Providing username/password programmatically (e.g. after getting them from the portal's user mapping)
There is a property jco.client.mysapsso2 in DestinationDataProvider. Do I have to specify a new JCoDestination for each user (session)? This is not the way I would expect it to work, for basically I would like to create one destination for each R/3 system I access.
Thanks in advance!
Carsten
Hello,
you could write and register your own DestinationDataProvider and overwrite the method getDestinationProperties(String destinationName)
you could then define some sort of mapping - e.g. adding the sso ticket to the destinationName and then in the method return the properties with the jco.client.mysapsso2 with the sso ticket
could look like this
JCoDestinationManager.getDestination("myserver1|ssoticket").
regards franz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the meantime I found out how to do it right:
// After getting the desired destination, create a custom destination for it
JCoDestination destination = JCoEnvironment.getDestination( "<DestinationName>" );
JCoCustomDestination custDest = destination.createCustomDestination();
// From the custom destination you can get and manipulate the corresponding UserData object
UserData data = custDest.getUserLogonData();
// On this object you can set the desired fields (see Javadoc for UserData for more information)
data.setAliasUser( ... );
data.setClient( ... );
data.setLanguage( ... );
data.setPassword( ... );
data.setSSOTicket( ... );
data.setUser( ... );
data.setX509Certificate( ... );
// Then, use the custom destination to do things
JCoContext.begin( custDest );
...
JCoContext.end( custDest );
I only tried it using a different user/password combination than configured and it worked. Didn't yet try with SSO.
Note that JCo creates one physical connection to the R/3 system when getting the destination and a second when creating the custom destination.
Edited by: Carsten Erker on Apr 1, 2009 10:32 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.