Authentication issue

Authentication issue

Old forum URL: forums.lhotka.net/forums/t/10908.aspx


poulin_julien posted on Tuesday, November 22, 2011

I have a simple WPF application and recently upgraded from 4.1 to 4.2 and authentication didn't work anymore.

I've compared the source between 4.1 and 4.2, and it seems related to the way the user it stored in the ApplicationContextManager. I'm performing authentication on a background thread to avoid freezing the UI and since the user is set to Thread.CurrentPrincipal, it gets lost in the process...

Is there a workaround for this problem?

RockfordLhotka replied on Tuesday, November 22, 2011

A WPF application must reference Csla.Xaml.dll so the correct ApplicationContext.User provider is used. WPF requires special of the principal, and that special handling is implemented in a provider that is in that assembly.

poulin_julien replied on Wednesday, November 23, 2011

Thank you for your help.

Copyright (c) Marimer LLC