Hello everybody.
Six months ago I wrote a OpenID library. It is trying to authenticate with some open Id and if that is verified by provider, it raises OpenIdValidationSuccess event. I was using some event handlers to handle this events from the page.
OpenMedia.Auth oAuth = new oAuth();
In my Page Load
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
// Register event handlers.
oAuth.OpenIdValidationSuccess += new EventHandler(web_Success);
oAuth.OpenIdValidationFailure += new EventHandler(web_Failure);
// Start handling responses.
oAuth.StartHandleResponse();
}
}
So i am new in MVC. I want to use this code library in my new MVC application. But what would be the best practice?