Custom Security C# Web Forms


I'm having a bit of trouble trying to implement my custom role based security using IPrincipal and IIdentity.

I've pretty much got it sorted, I think/hope.

I've pasted all my relevant code

I'm getting an object reference not set exception in the Login function within the class Login : Page

Here, I believe, but not sure why. As I have instantiated the UserIdentity class.

// call on SecureLogin.AuthenticateUser, parse in eUN and ePW to check if it exists

SecureLogin.UserIdentity uIdent; uIdent = SecureLogin.AuthenticateUser(eUN, ePW); Any help would be greatly appreciated.

by archaon-jam via /r/csharp

Leave a Reply