CSLA 2.1.4: Security

CSLA 2.1.4: Security

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


cjherasmus posted on Friday, May 11, 2007

Hi,

Instead of logging into the application as described in the book, I've changed my application to have the user log in before the application starts. I'm running everything on a pc as stand-alone like in the book.

Everything seems to be working and the user logging in is correctly authenticated, etc.

However, I would like to display user info as does the book, but the line:

System.Security.Principal.IPrincipal user = CSLA.ApplicationContext.User;

does not return the current logged in user info that was successfully authenticated, but returns null for Name and False for IsAuthenticated.

Does anyone have ideas, suggestions?

Regards

 

Copyright (c) Marimer LLC