cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Auto Login and Redirect for 12.2

Former Member
0 Likes
463

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Dave, don't forget the session=true url parameter.

Former Member
0 Likes

This is an easy one. Not sure how I missed this originally:

http://server:port/XMII/CM/path/file.irpt?IllumLoginName=myUserName&IllumLoginPassword=myPassword&se...

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

Former Member
0 Likes

cheers for posting the solution, not only the question

It's exactly what I needed ..