sleath
sleath

Reputation: 871

What's the point of using JWTs with ASPNet.Identity?

I've implemented ASPNET.Identity with a custom JWTProvider. However is there a point of using JWT with ASPNET.Identity instead of the baked in regular token bearer in Identity already? Does this increase security? Does it just add more complexity to the application?

UPDATE In terms of using the Oauth token provider vs custom JWTProvider. Does this get you any added security?

Upvotes: 4

Views: 230

Answers (1)

Vikas Sardana
Vikas Sardana

Reputation: 1643

Both are very much different in terms of XSRF/CSRF.

In case of OAuth XSRF token is always send to client in every response header of server. It does not matter, CSRF token is sent in JWT token or not. Because CSRF token is secured with itself. Therefore sending CSRF token in JWT is unnecessary.

Upvotes: 2

Related Questions