The Portal Zone
(Moved to http://portalzone.blogspot.com/)

Friday Jan 27, 2006

Tip: One click login to Sun Portal

Here is a shortcut I use all the time. If you develop applications on Sun Portal,you might find it useful too.

Every time I want to login to portal, do I not go to the portal's welcome page and enter my credentials. Instead, I have a bookmark in Firefox (and link in Internet Explorer ) with the following syntax.

http://[hostname]:[port]/amserver/UI/Login?IDToken1=[loginID]&IDToken2=[password]&goto=/portal/dt

where
[hostname] - is the server hostname
[port] - the server port
[loginID] - the userid to be logged in
[password] - the password

All I do is click on this bookmark (or IE link) and I get magically logged into the portal.

How does this work ?
Portal Server uses the Access Manager for user authentication. When I click the above link, I hit the Access Manager. Access Manager uses the username and password from the URL to authenticate me. On a successful authentication, I am assigned an SSOToken.

Next Access Manager redirects me to the portal desktop (notice the goto parameter in the URL ? ). And the portal desktop can recognize my identity from my SSOToken. So I am logged in !

Simple huh ;-) ?


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License.