Код: Выделить всё
[HttpGet(Name = "GetTokenPrincipal")]
[Route("/GetTokenPrincipal")]
public ClaimsPrincipal? GetTokenPrincipal([FromQuery]string token)
{
var jwtSecurityToken = new System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler().ReadJwtToken(token);
var tokenEnc = jwtSecurityToken.Header.Enc;
throw new NotImplementedException();
}
Код: Выделить всё
{"alg":"dir","enc":"A256CBC-HS512","typ":"JWT","cty":"JWT"}.{}
Код: Выделить всё
{"alg":"dir","typ":"JWT"}.{}
- Проверил работу на двух разных контроллерах,
< li>Проверил соединения в builder.Services и app.Use...
Подробнее здесь: https://stackoverflow.com/questions/788 ... e-other-wi