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 ;-) ?
Posted at 05:19PM Jan 27, 2006 by Navaneeth Krishnan in Tips and Tricks | Comments[1]
This work is licensed under a
Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License.