public ActionResult JwksDocument() { return(Content(JsonConvert.SerializeObject(new Jwks { Keys = new[] { JwksKey.FromSigningCredentials(_signingCredentials.Value) } }), "application/json")); }
public ActionResult JwksDocument() { JwksKey key = JwksKey.FromSigningCredentials(JwtConfig.JwtSigningCredentials); return(Content(JsonConvert.SerializeObject(new JwksDocument { Keys = new[] { key } }, JsonFormatting), "application/json")); }