2017-09-28 152 views
0

我有具有使用microsoft.aspnet.identity 2.2IdentityServer 4與舊的WebForms網站

我們想擴大網站的許多關鍵業務用戶的舊的WebForms網站,但將使用微服務型架構做這個。我們想要啓動新的.NET核心服務,但他們需要能夠連接到這個充滿用戶的傳統數據庫。通過這個我的意思是能夠共享登錄(所以用戶不需要兩次登錄兩次btn的各種微服務)

是站立IdentityServer的最佳方式(在自己的某個地方 - 可能託管在AWS中)它連接到這個數據庫中,然後讓:

1)Web表單來驗證它

2)未來.NET芯微的服務可以權威性呢?

目前,我們有這個對於我們的應用程序:

app.CreatePerOwinContext(ApplicationDbContext.Create); 
      app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create); 
      app.CreatePerOwinContext<ApplicationSignInManager>(ApplicationSignInManager.Create); 

     // Enable the application to use a cookie to store information for the signed in user 
     // and to use a cookie to temporarily store information about a user logging in with a third party login provider 
     // Configure the sign in cookie 
     app.UseCookieAuthentication(new CookieAuthenticationOptions 
     { 
      AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, 
      LoginPath = new PathString("/Account/Login"), 
      SlidingExpiration = true, 
      CookieName = ".AspNet.SomeName" 
     }); 
     // Use a cookie to temporarily store information about a user logging in with a third party login provider 
     app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);h section 

回答