Reputation: 871
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
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