Identityserver4 使用HS256对Identity Server 4令牌进行签名

Identityserver4 使用HS256对Identity Server 4令牌进行签名,identityserver4,Identityserver4,我有一个现有的api,它生成并使用jwt的头,如下所示 { "typ": "JWT", "alg": "HS256" } api使用JWT承载身份验证 app.UseJwtBearerAuthentication(new JwtBearerAuthenticationOptions { AuthenticationMode = AuthenticationMode.Active, AllowedAudiences = new[] { "Any" }, Issue

我有一个现有的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)
    }
});
现在,我想将identity server用于我想与之集成的客户机。
如何让Identity server以现有api期望的方式(HS256)对令牌进行签名。

Identity server不支持对称密钥

IdentityServer不支持对称密钥