Microsoft Content Management Server - Forms Authentication using membership provider

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2006 > Forms Authentication using membership provider





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Forms Authentication using membership provider
aporter

2006-08-24, 1:26 pm

I have implemented a forms authentication security component based on
Stefan's article
http://blogs.technet.com/stefan_gos.../03/408588.aspx This
was working successfully but now it does not seem to redirect after
authentication. I have debugged the project and it authenticates the user,
creates the CMS ticket successfully but it does not redirect the user to the
home page. The web.config settings seem ok, but when I try to mannually goto
the home page after I have authenticated I get a page cannot be displayed,
but proir to authentication I can successfully get to the home page

Has anyone got any ideas?

Thankyou in advanced
Stefan [MSFT]

2006-08-24, 1:26 pm

Hi,

did you debug the code?
Does the Response.Redirect statement get hit?
Does the browser try to redirect?

What kind of page cannot be displayed do you get?
"DNS error or host not found" or "page not found"?

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights


"aporter" <aporter@discussions.microsoft.com> wrote in message
news:61D0621D-458E-4E49-8630-F09D9FFF0635@microsoft.com...
>I have implemented a forms authentication security component based on
> Stefan's article
> http://blogs.technet.com/stefan_gos.../03/408588.aspx
> This
> was working successfully but now it does not seem to redirect after
> authentication. I have debugged the project and it authenticates the
> user,
> creates the CMS ticket successfully but it does not redirect the user to
> the
> home page. The web.config settings seem ok, but when I try to mannually
> goto
> the home page after I have authenticated I get a page cannot be displayed,
> but proir to authentication I can successfully get to the home page
>
> Has anyone got any ideas?
>
> Thankyou in advanced



aporter

2006-08-24, 1:26 pm

I have debugged the code and it does hit then pass over the redirect. I the
page does try and redirect, well I think as it refreshes. The error that I
can within the Page cannot be found with "Cannot find server or DNS Error".
I have looked through the IIS logs and nothing is getting logged.

Thankyou in advanced
Stefan [MSFT]

2006-08-24, 1:26 pm

Hi,

you should open a support case for this.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights


"aporter" <aporter@discussions.microsoft.com> wrote in message
news:044B785A-A41A-4561-9C88-8B7FED91701C@microsoft.com...
>I have debugged the code and it does hit then pass over the redirect. I
>the
> page does try and redirect, well I think as it refreshes. The error that
> I
> can within the Page cannot be found with "Cannot find server or DNS
> Error".
> I have looked through the IIS logs and nothing is getting logged.
>
> Thankyou in advanced



aporter

2006-08-24, 1:26 pm

Stefan,

This problem of the page not being displayed has now been resolved, a host
headers issue. But it still does not redirect after it has been
authenticated. When using forms authentication with membership providers,
will the defaultUrl parameter within the forms section of the web config be
used as the redirect or is this feature not available?
Stefan [MSFT]

2006-08-24, 1:26 pm

Hi,

I haven't tried but I don't think that it will be used.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights


"aporter" <aporter@discussions.microsoft.com> wrote in message
news:4F344360-DFF8-4FF9-A49D-30309502D390@microsoft.com...
> Stefan,
>
> This problem of the page not being displayed has now been resolved, a host
> headers issue. But it still does not redirect after it has been
> authenticated. When using forms authentication with membership providers,
> will the defaultUrl parameter within the forms section of the web config
> be
> used as the redirect or is this feature not available?



Stefan [MSFT]

2006-08-24, 1:26 pm

Just to add: does it work with the ReturnUrl query string parameter?

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights


"aporter" <aporter@discussions.microsoft.com> wrote in message
news:4F344360-DFF8-4FF9-A49D-30309502D390@microsoft.com...
> Stefan,
>
> This problem of the page not being displayed has now been resolved, a host
> headers issue. But it still does not redirect after it has been
> authenticated. When using forms authentication with membership providers,
> will the defaultUrl parameter within the forms section of the web config
> be
> used as the redirect or is this feature not available?



aporter

2006-08-24, 1:26 pm

Stefan,

I have now solved the problem, looking back on it I should of stated it in
my original past that we are using a WebControls.Login control. Once I set
the "PestinationPageUrl" property it worked. I was just assuming that as we
were using forms authentication that it would take the information out of the
web.config, but it seems to me that when you are using such a control the
web.config information is ignored. Thankyou for all your assistance
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com