简体   繁体   中英

JWT and asp.net (core) web application

Currently I am developing an asp.net core web application with OpenID connect and Azure. I found that Web API project template uses JWT authentication. Can I use JWT authentication for both web application, API project (with Azure)? I can see a lot of sample Web API projects with JWT but I hardly find any sample or tutorials of asp.net (core) MVC web applications with JWT authentication. Is it possible web applicatin can be authenticated with JWT? For example, login page can issue a jwt token and the site can be authenticated after that?

Thanks

JWT 用于保护 Web api ( https://goblincoding.com/2016/07/03/issuing-and-authenticating-jwt-tokens-in-asp-net-core-webapi-part-i/ ),而cookie 通常用于保护 Web 应用程序。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM