2017-04-19 23 views
0

我已實施IdentityServer4。我正面臨從非核心Mvc客戶端驗證用戶的問題IProfileService登錄驗證後未被調用。 當我嘗試從登錄.NetCore Mvc客戶端其工作正常。IdentityServer4 ProfileService未針對非Core客戶端調用

Here is my Mvc.Net Client configurations 

app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions 
    { 
       AuthenticationType = "oidc", 
       SignInAsAuthenticationType = "Cookies", 

       Authority = "http://localhost:5070/", 
       RedirectUri = "http://localhost:65156/signin-oidc", 

       ResponseType = "code id_token", 
       ClientId = "Justt-IWA-001113", 
       ClientSecret = "!Erty#@asd", 
       Scope = "openid profile SavingsAPI", 

      }); 

我需要在ProfileService中實現用戶聲明implementationaion.Can任何人都可以提出一些解決方案嗎?

回答

0

確保您撥打的

比如你IprofileService實現,如果 「ProfileService」 是實現,那麼

AddIdentityServer()..AddProfileService<ProfileService>();