on 01-22-2004 7:25 PM
Hello,
how is it possible to do "user mapping" within the URL iView?
I have already read the article "Single Sign On with User ID and Password in EP 5.0" in SDN.
I want the iView to call an URL like this "http://user:password@www.mysite.com" or "http://www.mysite.com?user=name&password=pwd". The user and password parameter should depend on the user logged on to the portal.
Do I have to develop my own iView to do something like this? Are there any examples?
Thanks
Markus
Hi Markus Karsch,
Create an Iview based on com.sap.portal.appintegrator.sap . Select generic option, then in Iview Property URLTemplate give "http://websitename.com?name=<User.LogonUid>"
At runtime <User.LogonUid> is substituted with the logon userid. then it will directly take u the website u wanted.
Hope this helps.
Thanks,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Markus,
I don't know what type of iView you have - .Net or Java but if it is .Net and all you are trying to do is get to another site with the logged on user then it is very easy. Create a .Net Custom iView with the URL http://www.mysite.com. Then below where it says URL arguements add your USERID and PASSWORD arguements. Use the HRNL tag DBUSER and DBPASSWORD as values.
Check out http://www2.iviewstudio.com/portal/main/sub_content/docs/Useful_HRNL_Tags.pdf for information on how to use HRNL tags.
HTH,
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Neha,
I'm using EP6 SP2 with the PDK as Business Package. So I'm using Eclipse to develop my own iViews in Java. Now I'm only redirecting to the new URL including the UserID with the help of the meta refresh in HTML. But this way the tray around the iViews disappears and the hole page is refreshed. If I had a second iView this will also disappear. Is there a better way to redirect to the URL (incl. UserID) only in the tray of the iView?
Thanks,
Markus
my Java Code:
import com.sapportals.portal.prt.component.*;
import com.sap.security.api.*;
public class NewComponent extends AbstractPortalComponent
{
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
{
IUser user = request.getUser();
String LoginName = user.getUniqueName();
response.write("");
}
}
it's not a good idee to send user and password by URL.
IE microsft has a patch for url like this http://user:passw@site.com from february this year.
From now on you can't use this for login automaticaly.
Does anyone have any other good options to connect to a site via a URL call without using the user:password@site option? I need to connect to a site that does not support SSO and was using the user:password@site option. As soon as the latest IE 6.0 patch was installed, the URL no longer functions. Any help would be greatly appreciated.
Thanks..John
I don't use user/password for login. I only get the userid and pass it to the webserver in the url. I don't send any password. I have restricted the access to the webserver to the IP of the portal server. So an request can only be send by the portal. I think thats secure enough. The userid I need for personalization of the page from my webserver to which I redirect.
>
> I don't use user/password for login. I only get the
> userid and pass it to the webserver in the url. I
> don't send any password. I have restricted the access
> to the webserver to the IP of the portal server. So
> an request can only be send by the portal. I think
> thats secure enough. The userid I need for
> personalization of the page from my webserver to
> which I redirect.
It is not secure. With TCP/IP Flooding somebody can block the Server and then use your IP. Dont use this for Internetscenarios!
Best Regards,
Patrick
Hi Sanjeev,
If I understood ur question correctly, you want to execute a SAP transaction in SAP EP and pass logon userid to the sap transaction selection screen variable. If I'm correct then you need to create an IView based on SAP Transaction Iview and pass transaction code, system ID and save it. Before passing system value u need to create system alias.
Coming to passing userid to the Trasanction, use sy-uname in the Program.
Thanks,
Praveen
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.