ASP.net single sign-on

We have developed an integrated unified system for user authentication.

When a page is requested, if it is not authenticated, the login page will be redirected. After they enter the requested page, they will be shown.

this works when we do not assign a domain to a virtual directory. But when we assign a domain to a virtual directory after authentication, the application does not redirect to the requested page.

We use the FormsAuthentication.GetRedirectUrl method to redirect the requested page.

Why is this happening? How can we solve this problem?

+6
forms-authentication
source share
2 answers

You might also want to check out the Windows Identity Framework.

Good article here: Windows Identity Foundation Capabilities for Passive Single Sign-On and Single Sign-Out

+1
source share

First add defaulturl to your web.config and see if the page can be redirected to defaulturl after authentication

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

If the defaulturl function works, you need to check the ReturnUrl parameter in your login page address

0
source share

All Articles