asp.net mvc - Azure # many sites - one login ( Single Sign On ) -


plan :

many asp net 4.5 sites hosted on azure (will mapped different domains) -->

how share login between sites?

option 1 :

use 1 database sites - how each site login , site "master site" hold

the database?

option 2 :

use database each site 1 global database users(+forums posts)

option 3 : ( combine 1+2 ?! )

2 database , 1 users users(+forums posts) + 1 data

either option , don't know how ...

i'm using codefirst membership provider

  • if login sitea login siteb , etc ( got point )

  • is "same domain" if sites sits on azure?

you need use azure access control service (acs) part of windows azure active directory.

create 1 acs namespace , add applications urls relying parties in namespace through portal. after need add sts reference visual studio (that comes when install windows identity foundation) each of application giving url of acs service namespace.

you have add custom identity provider against need authentication. example, in scenario can have single database , create custom sts authenticates using forms authentication, , have use url of service identity provider in acs namespace. have option add default identity providers such windows live, google, yahoo , facebook in case want.

for detailed steps refer link

there few sample codes available @ msdn code gallery well.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -