Site icon David Lozzi

SharePoint 2010: Create unique login page with forms based authentication

Advertisements

An awesome feature with SharePoint is the ability to use another authentication store for your users. This is especially helpful when you want to extend your site to an extranet or internet zone and you don’t want your external users in your company Active Directory. I walk through configuring and setting up CBA here. Once you’ve configured your web application to use FBA, the typical login page is plain. If you setup mixed mode (as in my example) the login page simply prompts for Windows or Forms authentication. Most users don’t understand the difference.

Seriously, what end user doesn’t know they’re using a Windows account? And my extranet users, seriously, they should know they’re forms…

Fortunately, we can change these options and give the user a little more to work with. For my example, I have my web application setup and I want my customers to login so we can collaborate on orders and projects. I would like a login page that is painfully obvious as to which how the user should login. We’ll dive into how to do so now. I walk through creating a new project with the end result being a feature. I prefer this method because it gives us the most flexibility with a code behind file. We could add CAPTCHA verification, or additional components as we need to make this work.

You’ll see that I’m overriding some of the CSS elements, this will let me customize this to exactly what I want.

So my login page went from

To

References

Exit mobile version