【发布时间】:2019-03-28 15:37:52
【问题描述】:
我有一个现有的 api,它生成和使用带有如下标头的 jwt
{
"typ": "JWT",
"alg": "HS256"
}
api使用JWT承载认证
app.UseJwtBearerAuthentication(new JwtBearerAuthenticationOptions
{
AuthenticationMode = AuthenticationMode.Active,
AllowedAudiences = new[] { "Any" },
IssuerSecurityTokenProviders = new IIssuerSecurityTokenProvider[]
{
new SymmetricKeyIssuerSecurityTokenProvider(issuer, secret)
}
});
我现在想将身份服务器用于我想与之集成的客户端。 如何让身份服务器以现有 api 期望的方式对令牌进行签名 (HS256)。
【问题讨论】:
标签: identityserver4