/Net.JwtAuth.Demo

練習 JWT Token-based authentication 實作於 .NET 8 上(To practice how jwt token-based authentication implement on .NET 8.)

Primary LanguageC#MIT LicenseMIT

Net.JwtAuth.Demo

這個專案專注於利用 Json Web Token 來達到 API-based 的設計架構中實踐驗證與授權機制。
This project focus on the use of Json Web Token to achieve API-based design verification and authorization.

練習 JWT Token-based authentication 實作於 .NET 6 上。
To practice how jwt token-based authentication implement on .NET 6.

運行專案

這個方案含有測試專案用於驗證應用程式行為。你可以透過 Visual Studio 2022 或者是利用 dotnet test 指令跑測試。

The solution contains a Test project validating the application behaviour. You can run the tests from Visual Studio 2022 or by typing dotnet test in a command window.

假如你想要直接測試應用程式,可以使用 Postman 或其他一些用於模擬 Client-side 行為的應用程式。

If you want to interactively test the application, you can use Postman or any other Http client.

透過 Visual Studio 2022 或者利用 dotnet run 指令先把專案跑起來。

  1. Run the project from Visual Studio 2022 or by typing dotnet run in a command window.

https://localhost:7277/swagger/index.html

  1. Go to https://localhost:7277/swagger/index.html.

嘗試自己玩看看

  1. Try it yourself.