Geeks With Blogs

News invisible hit counter View My Stats
Technical Speaking

Many applications need Claim Based Authentication instead of Classic Mode Authentication. The Form Based Authentication (FBA) is one type of Claim Based Authentication. The default login page of FBA in SharePoint 2010 is very simple which only provides a simple Login control with the user name, password and remember me option. But many developers want to implement a customized login page for a better looking experience or more options according to business requirements.

image

Creating and Deploying a Custom Login Page for SharePoint 2010 Forms Based Authentication article will demonstrate how to create a custom login page for a SharePoint site using Visual Studio 2010 and deploy it in a server farm. It will also include how to change the default login page URL from the Central Administration Application Provider Settings.

More details in http://www.mssharepointtips.com/tip.asp?id=1093

Posted on Thursday, March 3, 2011 6:24 AM SharePoint 2010 | Back to top


Comments on this post: Custom Login Page for SharePoint 2010 Forms Based Authentication

# re: Custom Login Page for SharePoint 2010 Forms Based Authentication
Requesting Gravatar...
My first article published in MSSharePointTips.com
Left by Admin on Mar 23, 2011 10:52 PM

# re: Custom Login Page for SharePoint 2010 Forms Based Authentication
Requesting Gravatar...
Hi,

I read your post carefully in order to implement the Custom login page in SharePoint 2010.
I have created the page by going through steps given below:

1. Add a reference to the assembly “Microsoft.SharePoint.IdentityModel”.
2. Derive your class from Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.
3. Configure the Sign In Page URL in the central Administration.
4. Paste the ".ASPX" page in on the path: /_LAYOUTS/CustomLogin/customlogin.aspx
5. Register the DLL in the GAC.

After successfully deploying the custom login page. when try to access it from internet, i received 403 FORBIDDEN.
I am unable to figure this issue out. Please help.

Waiting for your valuable response.
Left by Ikram on Nov 25, 2011 1:01 AM

# re: Custom Login Page for SharePoint 2010 Forms Based Authentication
Requesting Gravatar...

This is one of the best articles so far I have read online. No crap, just useful information. Very well presented. Thanks for sharing with us. Check this link too...
http://mindstick.com/Articles/6345ba2f-1a8b-4ccf-9c81-d656ea0b4bf2/?Custom%20Application%20Page%20in%20SharePoint
Left by Ajay Singh on Dec 19, 2011 9:30 PM

# re: Custom Login Page for SharePoint 2010 Forms Based Authentication
Requesting Gravatar...
Error: 403 FORBIDDEN
Solution: From customlogin.aspx, change masterpagefile path to simple.master from layouts folder
For example:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Login"
MasterPageFile="~/_layouts/simple.master" %>

simple.master page has a anonymous access
Left by SUcheta on Dec 21, 2011 1:56 PM

# re: Custom Login Page for SharePoint 2010 Forms Based Authentication
Requesting Gravatar...
Ikram,

Sorry for late Reply
Change customlogin.aspx Inheritance LayoutsPageBase to System.Web.UI.Page
Left by Ferdous on Dec 25, 2011 1:30 AM

# re: Custom Login Page for SharePoint 2010 Forms Based Authentication
Requesting Gravatar...
Ikram,

Sorry for late Reply
Change customlogin.aspx Inheritance LayoutsPageBase to System.Web.UI.Page
Left by Ferdous on Dec 25, 2011 1:32 AM

# re: Custom Login Page for SharePoint 2010 Forms Based Authentication
Requesting Gravatar...
Sucheta,

You have to follow the following steps:

* Need to remove asp:Content ID="Content1" runat="server" from the CustomLogin.aspx
* Need to remove DynamicMasterPageFile="~masterurl/default.master" from the @Page Register tag
* Write simple HTML code for the Login Box user interface including username and password textboxes anda Login Button like below:
Left by Ferdous on Dec 25, 2011 1:33 AM

Your comment:
 (will show your gravatar)


Copyright © MJ Ferdous | Powered by: GeeksWithBlogs.net