1

Im creating custom login page for sharepoint that will use Forms Based Authenitcation. I've read couple articles how to do it, but something is not clear to me.

What class should my Login.aspx (and other forms such as ResetPassword.asxp, UpdatePassword and etc) inherit from:

1.LayoutsPageBase 2.System.Web.UI.Page 3.FormsSignInPage 4.IdentityModelSignInPageBase Thanks,

1

There is a default FBA login page already there in

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\Login.aspx

Could you use that as a template ?

| improve this answer | |
0

The login page must be inherited from the Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage class according to this guide.

| improve this answer | |
  • I tried doing that, but when i inherit from FormsSignInPages, im having trouble with inherited events (AuthenticatedEventHandler, LoggingInEventHandler). What i did is, im actually inheriting from IdentityModelSignInPageBase just to avoid some of the logic on FormsSignInPages level. Im getting expected results, im just curious how other people are doing it – bakre Mar 12 '12 at 20:17
0

It should be inherited from IdentityModelSignInPageBase. Refer this http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.identitymodel.pages.identitymodelsigninpagebase.aspx

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.