问题标签 [identitymodel]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 在 Identitymodel v4.3.0 中初始化 TokenClient
我正在研究 IdentityModel v3.10.10,TokenClient 构造函数接受了 4 个参数,但现在我已经升级到 IdentityModel v4.3.0,TokenClient 只接受两个参数:
这是我之前用于 IdentityModel v3.10.10 的代码:
有人知道如何升级类的初始化以支持 IdentityModel v4.3.0。
c# - IdentityModel RequestRefreshTokenAsync 方法总是返回 invalid_client
我有以下代码:
它总是返回带有 invalid_client 消息的 400 Bad Request。当我在 Postman 中刷新令牌时,它运行良好。问题出在哪里?
c# - 参数计数不匹配 CreateEndSessionUrl - IdentityModel
我是 C# 的新手。我正在将 .NET IdentityModel 与 AWS Cognito 用户池一起使用,并尝试让注销工作。CreateEndSessionUrl 设置 post_logout_redirect_uri 但 Cognito 需要 logout_uri。我正在尝试使用该extra
参数,但得到一个参数计数不匹配。
这是我的代码:
CreateEndSessionUrl文档说“额外的参数可以是字符串字典或具有属性的任意其他类型。在这两种情况下,值都将被序列化为键/值。” 我假设我以某种方式错误地创建了字符串字典。
我得到的错误是:
有人可以帮助我了解如何正确格式化和包含extra
参数吗?如果可以排除它们,我实际上不需要 idTokenHint、postLogoutRedirectUri 或状态。
.net-core - IdentityModel.AspNetCore problem with proxy credentials for backchannel HttpClient
I'm using IdentityModel.AspNetCore to manage client access tokens in a background service. Access to the internet is only possible through a corporate proxy server which uses windows authentication.
The proxy server is configured in Windows options and the background service detects the settings, however authentication doesn't work and I'm constantly getting The proxy tunnel request to proxy 'http://proxy:8080/' failed with status code '407'
. How can I configure the HttpClient to use the windows credentials for authentication against the proxy server?
I've already tried the following, but this doesn't work: