Security Context Change 15.2

 

We have been using a security context in tha past with 15.1.3 to identify an individual as follows

string contactID = ((Asi.Security.AppPrincipal)Asi.Security.AppPrincipal.CurrentPrincipal).AppIdentity.ContactMaster;

I have since loaded the new 15.2 on a server and this context no longer works.

I have found this snippet of code in 15.2

if (Session["User"] != null && Request.Cookies["UserID"] != null)

{

user = (Asi.iBO.ContentManagement.

CWebUser)Session["User"];

sec = new Secure();

userId = sec.Decrypt(Request.Cookies["UserID"].Value.ToString());

}

 

So it seems that they have changed this since there is an error when trying to get to the .ContactMaster now.

 

Is this true or am I looking at this wrong

 

Thanks

Broc

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Yes it has changed

Have a look at this page, which outlines the changes needed to move iParts from 15.1 to 15.2:

http://www.imiscommunity.com/converting_a_15_1_3_ipart_for_use_in_imis_1...

While the cookie trick may work, it's better to use the new SecurityHelper.

--
Bruce Wilson
Director, Technical Services
RSM McGladrey, Inc.