on ‎2012 Jan 11 1:41 PM
Hi Experts,
I seek a method to log in a user to MII and redirect automatically to a specific page. All users will access MII via the same account (used for all operators).
Prior to 12.2, I could manage it all with a few switches in the URL, similar to:
http://server:port/logon/logonServlet?redirectURL=/XMII/CM/Project/File.irpt&j_user=myusername&j_pas.... I can not figure out or find anything documented that this is possible via a different URL. Is this still possible with 12.2?
I understand that another (the only?) option may be to create a simple login form that calls the j_security_check function, in my case I could hard-code the username and password. How does this work? Where do I store the login form (if I store it in the MII project file then I need to login to MII just to get to that)?
Thanks in advance,
Dave
Request clarification before answering.
Dave, don't forget the session=true url parameter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is an easy one. Not sure how I missed this originally:
Need to include the session=true switch.
Can pass additional URL parameters specific to the page too, if desired.
The problem with the above URL is that the username and password remains in the URL. I solved that by creating a new IRPT with a simple redirect: META HTTP-EQUIV="Refresh" CONTENT="0,URL=file.irpt". I then changed the URL above to call the new redirect page, which in turn calls the page that I want. (An additional benefit to the redirect is that the ultimate page can change without changing the user's favorites or links.)
Dave
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.