{"categories":["C#","ASP.NET"],"url":"https://kagasu.hatenablog.com/entry/2023/09/11/164749","published":"2023-09-11 16:47:49","description":"\u2160. \u306f\u3058\u3081\u306b \u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u300cASP.NET\u3067JWT\u3092\u5229\u7528\u3057\u3066\u8a8d\u8a3c\u8a8d\u53ef\u3059\u308b\u65b9\u6cd5\u300d\u3067\u3059\u3002 \u2161. \u74b0\u5883 .NET 7 \u2162. \u624b\u9806 1. \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer --version 7.0.10 2. \u65b0\u898fWeb API\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b Program.cs using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.IdentityModel.Tokens; using S\u2026","height":"190","type":"rich","blog_url":"https://kagasu.hatenablog.com/","provider_url":"https://hatena.blog","width":"100%","author_name":"kagasu","author_url":"https://blog.hatena.ne.jp/kagasu/","title":"ASP.NET\u3067JWT\u3092\u5229\u7528\u3057\u3066\u8a8d\u8a3c\u8a8d\u53ef\u3059\u308b\u65b9\u6cd5","provider_name":"Hatena Blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/k/kagasu/20230911/20230911164506.png","blog_title":"\u5099\u5fd8\u9332","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2023%2F09%2F11%2F164749\" title=\"ASP.NET\u3067JWT\u3092\u5229\u7528\u3057\u3066\u8a8d\u8a3c\u8a8d\u53ef\u3059\u308b\u65b9\u6cd5 - \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0"}