Skip to Content
0
Former Member
Oct 27, 2006 at 09:27 AM

Simple Sign On to portal

116 Views

Hello

We want to log on to the portal without getting the logon screen. Normally easy BUT:

Not the workstation user should logon to the portal, but a user from another application. In that application I want to create a button which gives sso to the portal.

I have created an html that performs the trick, this html should be created and run when the button is pushed.

Because user and pw are included, this not a secure solution.

Anyone a better more secure idea?

To test replace <portal-url>, <username> and <password> with your own values

<html>
<head>
</head>
<body>
<center>
<p>
<FORM name="logonForm" method="post" action="http://<portal-url>/irj/portal" >
<input name="login_submit" type="hidden" value="on">
<input type="hidden" name="login_do_redirect" value="1" />
<input name="no_cert_storing" type="hidden" value="on">
<input type="hidden"id="logonuidfield" name="j_user" type="text" value="<username>">
<input type="hidden" id="logonpassfield" name="j_password" type="password" value="<password>">
<input name="j_authscheme" type="hidden" value="default">
<input type="submit" name="uidPasswordLogon" value="SSO door Rob Hiddinga - Maxeda IT Services">
</form>
</p>
<script>
document.logonForm.submit();
</script>
</center>
</body>
</html>