cancel
Showing results for 
Search instead for 
Did you mean: 

Handling of User Logon Information

Former Member
0 Kudos

I dont know how other developers, especially in consulting feel, but in several customer projects I have seen a difficulty when trying to access user logon information that is mapped onto a data source.

Internally, we store that as a hashtable with some "secret" keys and only provide enrich() methods for a URI or Java connector. If you want to implement custom enrich methods, you will have to disassemble the Java coding to find these secret keys.

Takes 30 mins and off you go.`

But wouldn't it be better to offer a standardized solution like a master authentification class to extend for these purposes?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kai,

I know that AbstractBackendConnection class exists with EP5 under the package com.sapportals.portal.security.usermanagement. I have to implement the same functionality (To get the the remoteApplicationName) with EP6.

I am not able to find the AbstractBackendConnection class in EP6. Has the class file name and package name been changed for EP6.

It will be nice if you can help me out to get the class name for the above class's replacement.

Thanks in advance

Oliver_S
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Siegfried,

Kai has proposed the follwing solution:

the user mapping feature can be used by extending the AbstractBackendConnection class. Implement getRemoteApplication() and return the key for the system that?s displayed in the user mapping dialog. Then you get the logon data then by calling

ILogonDataBroker ildb = user.getMappingInfo ();

ildb.enrich (mybackendconnection);

the ildb will internally call mybackendconnection.setLogonData and pass a hashmap with user id and password in it.

You don?t need to do anything in connect() and logoff () unless you want to, getDefaultCredentials () contains a default implementation.

In EP6 we?ve improved this interface (and better documentation is also available). There, the detour over a backend connection is no more necessary. Using a map seemed appropriate since you do not always have only user id and password.

Best Regards,

Kai, Oliver

Former Member
0 Kudos

Kai, Oliver - could you please give us more information on using getDefaultCredentials()?

I need to do exactly this - get the default credentials and pass them along in other iViews without creating user mapping that the users have to maintain. Where can I get documentation on this?

Thank you!

-eric