This project is read-only.

Where to start.

Topics: Internet/Extranet Edition
Nov 10, 2008 at 11:55 AM
Have setup FBA for a Sharepoint site and installed the CKS according to Setup Forms Based Authentication & Install The FBAManagement Solution File.
When I open up the Internet version of my website I can logon with standard FBA. I would like to use the login webpart ofr this.
I know I can put it on a page but how do I make sure this is the first page and how about redirecting after a successful logon.

Is there some more doco available?



Nov 10, 2008 at 4:21 PM
Hi Piggybag

You set up the login page like any other ASP.NET application.  In the web.config you can specify a login page.  For example, on one of my sites I have a web part page in a document library.  It's called Login.aspx, and has the login web part on it.  There are other pages in that library for the other user manangement things.

    <authentication mode="Forms">
      <forms loginUrl="/Membership/login.aspx" />

ASP.NET will take care of the redirection after successful login because it appends a ReturnUrl parameter to the query string that points to the authenticate.aspx page (built-in to WSS), and a Source parameter that will specify what page you were on.  For example:

Going to and clicking sign-in sends you to:

You can put your pages with the login web part in a web part page in a document library (or anywhere else, for that matter).

Unfortunately, I don't think there is much documentation yet.  I was told there was a start, but haven't seen the docs yet.

Mike Sharp
Nov 11, 2008 at 12:20 PM
Thanks Mike,

I have "installed" the CKS using the extended website (the internet facing one). Created a testlogin page with the login webpart, updated the web.config in the extended website to look like this:

  <authentication mode="Forms">
      <forms loginUrl="/Pages/testlogin.aspx" />

Still when I open the extended website, I get the default logon page.

Nov 11, 2008 at 2:52 PM

That should be all that's needed.  That's how ASP.NET knows where to redirect on a login request.  The only thing I can think of is that you're modifying the wrong web.config.  Double-check to make sure you're modifying the one that has the FBA authentication provider...

Is that page accessible by an anonymous user? 

I think most of us are creating the FBA site, and then extending that site to an AD provider.  It should work either way, but I haven't tried it myself.

Nov 13, 2008 at 2:23 AM
Edited Nov 19, 2008 at 12:10 PM
My mistake. Before installing and using the CKS I had setup FBA and had been playing around with "customising" the login page. Did this by copying the generic layouts folder to a _layouts folder underneath the FBA site and adjusting the folder location. Restored the settings to default and now get a 401 error



So it looks like it now finds the correct page. Now I have to start fixing the 401 error.

Nov 19, 2008 at 11:49 AM
My site is not accessible for anonymous users, can I set the login page to be the only page available for an anonymous user? 

Dec 4, 2008 at 7:49 PM
Edited Dec 4, 2008 at 7:53 PM
I have a problem on the Register webpart in the continue button doesn't return you to the default.aspx page even when the used link includes ?ReturnUrl=...

I've tried this two or three times now but the link of the continue button looks like this after you create a new user"" this is technically right I think but doesn't work.

It just returns to the document libraray where the pages are.
Dec 4, 2008 at 7:56 PM
no I haven't found a way I had to create a login site... then make my first non-anonymous a subsite.

Make the login site anonymous.

Anyone know a good way to move entire sites to archive or move to a lower branch or the subsites?