Closed icetech233 closed 4 years ago
I don't understand your question. Can you explain?
JWTs are usually sent as bearer tokens (though it depends on your server configuration). Once you create the token with a library like System.IdentityModel.Tokens.Jwt
, you can set it for all requests:
client.SetBearerAuthentication(jsonWebToken);
Or for a single request:
Blog result = await new FluentClient("https://example.org/api")
.GetAsync("blogs")
.WithBearerAuthentication(jsonWebToken)
.As<Blog>();
how to with jwt ??? IdentityServer4