How do I implement multiple login/logout-domains, single main domain in ASP.NET and forms authentication?

StackOverflow https://stackoverflow.com/questions/4795168

Pergunta

I want to have several domains A, B, C where a user can enter his username and password to login to a common main domain D.

So the user goes to A, B or C, enters his username and password, clicks the "login" button, and is then on the main domain D in a logged in/authenticated state. Then the user does the things he wants to do, and then clicks the logout-button and is then returned to the original domain that he came from, be it A, B or C.

What is the best way to do this?

I currently use forms authentication in ASP.NET 4.0 (C#).

Thanks,

Foi útil?

Solução

The feature you need is called Single Sign-On.

Look for it on SO and you find how to do it.

Take a look at http://aspalliance.com/1545_understanding_single_signon_in_aspnet_20.all

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top