cancel
Showing results for 
Search instead for 
Did you mean: 

URL with User/Password in URL iView

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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("");

}

}

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hello Marcus,

Could you solve your problem with the URL iview and tray, that is the tray araound the iview disappear and the whole page is refreshed? I am also experiencing the same problem...

Former Member
0 Kudos

>

> 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

http://www.Unternehmensportale.biz

Former Member
0 Kudos

What I did in a similar task was just using another iframe inside the iview:

response.write("<IFRAME frameBorder=\"0\" src=\""this.urlToOpen"\" style=\"WIDTH:100%;HEIGHT:100%\"></IFRAME>");

hope this helps

kind regards

Francisco

Former Member
0 Kudos

hi Markus,

I am creating iview to connect to SAP R/3 and pass the userid to the variant.

how to pass this value to sap R/3 with URL.

Appreciate your assistance.

Thanks

sanjeev Mourya

Former Member
0 Kudos

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