identityserver4

    0热度

    1回答

    我有三个项目和2个EF上下文 IdentityServer4与.net标识(标识上下文) 的.Net API(经营业务上下文) 的js客户端(角) 我对实现注册的一些想法; 当用户点击注册JS中的客户按钮重定向到IdentityServers /帐号/注册网址。用户成功注册后,将必要的数据发送到API并生成相关行。然后我需要给Js客户端一个新的令牌,我不知道如何在注册后执行它。 当用户单击Js客户

    1热度

    1回答

    我一直在追逐这个问题一段时间,现在我无法了解它的底部。我读过这里的其他解决方案(https://identityserver4.readthedocs.io和https://github.com/IdentityServer/IdentityServer4.Quickstart.UI),但它仍然无法正常工作,所以我试图将其降低到绝对的基本水平。这不是我所面临的实际问题,而是产生了非常相同的结果。即

    0热度

    1回答

    我有身份服务器4设置和我的mvc客户端重定向到身份服务器,我可以验证用户。 现在,如果我想给我打电话API,我可以做到以下几点。但是,我必须将访问令牌传递到调用我的API的方法。 控制器 public class UserController : Controller { public IActionResult Index() { var accessToken

    -1热度

    1回答

    我以下链接 https://github.com/IdentityServer/IdentityServer4.EntityFramework 我看到很多表/实体但令牌甚至没有单一的表来实现EF身份服务器。 https://github.com/IdentityServer/IdentityServer4.EntityFramework/tree/dev/src/IdentityServer4.E

    0热度

    2回答

    我正在使用身份服务器4进行身份验证,使用授予类型作为“ResourceOwnerPassword”。我能够对用户进行身份验证,但无法获得与用户相关的声明。那么我怎么能得到这些? 下面是我的代码 客户 Startup.cs app.UseIdentityServerAuthentication(new IdentityServerAuthenticationOptions {

    0热度

    1回答

    我面对这个例外在我的验证的应用程序与identityserver4: SecurityTokenInvalidSignatureException:IDX10503:签名验证失败。 Keys尝试过:'Microsoft.IdentityModel.Tokens.RsaSecurityKey,KeyId: '。例外情况:''。 token:'{“alg”:“RS256”,“typ”:“JWT”}。{

    1热度

    1回答

    上下文变量(ResourceOwnerPasswordValidationContext)中是否存在一个属性,它允许我访问发送初始身份验证请求的客户端的IP地址。

    0热度

    1回答

    我已经实现IdentityServer4与ASP.NET核心身份,使用自定义商店: services.AddScoped<IUserStoreProxy<UserKey>, LocalUserStore<UserKey>>(); services.AddScoped<IRoleStoreProxy<UserKey>, LocalRoleStore<UserKey>>();

    1热度

    1回答

    我正在尝试构建多个连接到使用IdentityServer4构建的Identity Server的小型ASP.Net核心Mvc服务。 我已经安装,看起来像这样 app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationScheme = "Cookies" }); app.UseOpenId

    2热度

    2回答

    我正在使用Identity Server 4.当我的API在验证对API的访问时收到令牌过期(IDX10223:预期的生存期验证失败) ,它似乎重定向到注销页面,而不是仅仅返回401.我试图找出它在哪里被控制,因为这会导致客户端向注销页面发送HTML,这是不可取的。 的API代码有: [Authorize] public IActionResult API() { } 的API和Ident