【问题标题】:IdentityServer4 ProfileService is not being called for non Core clients未为非核心客户端调用 IdentityServer4 ProfileService
【发布时间】:2018-02-06 10:23:23
【问题描述】:

我已经实现了 IdentityServer4。我在验证来自 non Core Mvc 客户端的用户时遇到问题,因为在登录验证后未调用 IProfileService。 当我尝试从 .NetCore Mvc 客户端登录时,它工作正常。

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 实现中发布用户声明。有人可以提出一些解决方案吗?

【问题讨论】:

    标签: asp.net-identity identityserver4


    【解决方案1】:

    确保在

    中调用 IprofileService 实现

    例如,如果“ProfileService”是实现,那么

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

    【讨论】:

      猜你喜欢
      • 2021-05-16
      • 2018-02-28
      • 1970-01-01
      • 2021-12-22
      • 1970-01-01
      • 1970-01-01
      • 2016-05-10
      • 2018-04-07
      • 2022-01-20
      相关资源
      最近更新 更多