Developer forum

Forum » Development » Custom login throws error

Custom login throws error

Tom Kamphuis
Reply

Hi guys,

I'm trying to write a custom authentication class to communicate with an external authentication server. After some search (not sure if it's the best way) I've found the Security class with the ExtranetLogin method to authenticate a user in code. See screenshot attached.

When I call the method, my application breaks. This is due to the fact that at this time I don't have an HttpContext.Current.Session object, while the method GetLastFailedLoginDate has a dependency on it. What should I do to workaround this problem? Is there some other provider or something?

Cheers,
Tom

ErrorOnLogIn.jpg

Replies

 
Nicolai Høeg Pedersen
Reply

Hi Tom

You could make an external login provider:

http://developer.dynamicweb.com/forum.aspx?ThreadID=39863

BR Nicolai

 

You must be logged in to post in the forum