What are the main differences between JWT and OAuth authentication?

前端 未结 8 536
栀梦
栀梦 2020-12-04 04:25

I have a new SPA with a stateless authentication model using JWT. I am often asked to refer OAuth for authentication flows like asking me to send \'Bearer tokens\' for every

8条回答
  •  执念已碎
    2020-12-04 04:49

    find the main differences between JWT & OAuth

    1. OAuth 2.0 defines a protocol & JWT defines a token format.

    2. OAuth can use either JWT as a token format or access token which is a bearer token.

    3. OpenID connect mostly use JWT as a token format.

提交回复
热议问题