{"id":5618,"date":"2018-07-08T15:50:14","date_gmt":"2018-07-08T06:50:14","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=5618"},"modified":"2023-05-28T07:55:53","modified_gmt":"2023-05-27T22:55:53","slug":"jwtjson-web-token%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=5618","title":{"rendered":"JWT(Json Web Token)\u306b\u3064\u3044\u3066(base64\u306a\u3069\u3082)"},"content":{"rendered":"<h2>JWT(Json Web Token)\u3068\u306f\uff1f<\/h2>\n<p>\u96fb\u5b50\u7f72\u540d\u4ed8\u304d\u306eURL\u30bb\u30fc\u30d5(URL\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u308b\u6587\u5b57\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u308b)\u306aJSON\u5f62\u5f0f\u306e\u30c8\u30fc\u30af\u30f3\u306e\u3053\u3068\u3067\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u300c\u30b8\u30a7\u30fc\u30c0\u30d6\u30ea\u30e5\u30fc\u30c6\u30a3\u30fc\u300d\u3067\u306f\u306a\u304f<\/strong><strong>\u300c\u30b8\u30e7\u30c3\u30c8\u300d<\/strong><\/span>\u3068\u8aad\u307f\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30a4\u30ba\u3082\u5c0f\u3055\u3044\u305f\u3081\u3001URL\u3001POST\u30d1\u30e9\u30e1\u30fc\u30bf\u3001HTTP\u30d8\u30c3\u30c0\u5185\u3067\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u7570\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u9593\u3067\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001SSO(\u30b7\u30f3\u30b0\u30eb\u30b5\u30a4\u30f3\u30aa\u30f3\uff09\u3067\u3082\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u3042\u304f\u307e\u3067Base64\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u305f\u3060\u3051\u3067\u3042\u308a\u3001\u6697\u53f7\u5316\u306f\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u8ab0\u3067\u3082\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3042\u304f\u307e\u3067\u3001JSON\u304c\u6539\u3056\u3093\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u3001\u767a\u884c\u8005\u306b\u3088\u3063\u3066\u691c\u8a3c\u304c\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<h3>base64\u3068\u306f\uff1f<\/h3>\n<p><span style=\"color: #ff0000;\"><strong>\u6587\u5b57\u3084\u30d0\u30a4\u30ca\u30ea\u306e\u5727\u7e2e\u65b9\u6cd5\u306e\u4e00\u3064<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>64\u9032\u6570\u3092\u8868\u3059\u7528\u8a9e\u3067\u3001\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u3001\u6570\u5b57\u3001\u4e00\u90e8\u8a18\u53f7\u3092\u542b\u3081\u305f64\u6587\u5b57\u3067\u8868\u73fe\u3059\u308b\u30a8\u30f3\u30b3\u30fc\u30c9\u65b9\u5f0f\u3067\u3059\u3002\uff08\u7279\u6b8a\u6587\u5b57\u306f\u542b\u3080\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3002\uff09<\/p>\n<h4>\u7528\u9014<\/h4>\n<h5>\u30e1\u30fc\u30eb\u306e\u9001\u53d7\u4fe1\u306b\u5229\u7528\u3055\u308c\u308b<\/h5>\n<p>\u30e1\u30fc\u30eb\u306e\u9001\u53d7\u4fe1\u3067\u306f\u304b\u3064\u3066\u3001ASCII\u3068\u3044\u30467\u30d3\u30c3\u30c8\u306e\u30a8\u30f3\u30b3\u30fc\u30c9\u65b9\u5f0f\u3067\u3057\u304b\u30e1\u30fc\u30eb\u3092\u9001\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001MIME\u3068\u3044\u3046\u898f\u683c\u304c\u767b\u5834\u3057\u3066\u3001base64\u3067\u5909\u63db\u3059\u308b\u65b9\u5f0f\u304c\u63a1\u7528\u3055\u308c\u3066\u3001\u753b\u50cf\u3084\u97f3\u58f0\u3092\u9001\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u304c\u767b\u5834\u306e\u304d\u3063\u304b\u3051\u3067\u3057\u305f\u3002<\/p>\n<h5>\u300cURL\u30bb\u30fc\u30d5\u300d\u306b\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3055\u308c\u308b\u3002<\/h5>\n<p>URL\u306b\u306f\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u6587\u5b57\u304c\u3042\u308a\u307e\u3059\u3002\uff08\u4f8b\u3048\u3070\u3001\u30a4\u30b3\u30fc\u30eb\u300c\uff1d\u300d\u7b49\uff09<\/p>\n<p>base64\u306b\u3066\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u3066\u3001URL\u3067\u4f7f\u7528\u3067\u304d\u306a\u3044\u6587\u5b57\u3092\u6392\u9664\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\uff08\u3053\u308c\u3092<span style=\"color: #ff0000;\"><strong>\u300cURL\u30bb\u30fc\u30d5\u300d<\/strong><\/span>\u3068\u547c\u3073\u307e\u3059\u3002\uff09<\/p>\n<h4>\u7279\u5fb4<\/h4>\n<p>\u3042\u304f\u307e\u3067\u6587\u5b57\u3084\u3001\u753b\u50cf\u7b49\u306e\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u306e\u30a8\u30f3\u30b3\u30fc\u30c9\u3092\u884c\u3046\u3060\u3051\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u6697\u53f7\u5316\u3092\u3059\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<h3>\u7f72\u540d\u3068\u306f\uff1f<\/h3>\n<p>\u7f72\u540d\u6642\u306b\u4f7f\u3063\u305f\u9375\u3092\u7528\u3044\u3066\u3001JSON \u304c\u6539\u3056\u3093\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u3092\u30c1\u30a7\u30c3\u30af\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u96fb\u5b50\u7f72\u540d\u306b\u3064\u3044\u3066\u306f\u3001\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3054\u53c2\u8003\u306b\u3055\u308c\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>http:\/\/www.code-magagine.com\/?p=6129<\/p>\n<h3>URL\u30bb\u30fc\u30d5\u3068\u306f\uff1f<\/h3>\n<p>URL\u306b\u4f7f\u7528\u3067\u304d\u306a\u3044\u6587\u5b57\u3092\u542b\u307e\u306a\u3044\u3053\u3068\u3067\u3059\u3002base64\u30a8\u30f3\u30b3\u30fc\u30c9\u306b\u3066\u3001\u5b9f\u73fe\u3057\u305f\u308a\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n<h2>JWT\u306e\u30c7\u30fc\u30bf\u306e\u6d41\u308c<\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6153\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/07\/JWT\u306e\u6d41\u308c-1.png\" alt=\"\" width=\"906\" height=\"384\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/07\/JWT\u306e\u6d41\u308c-1.png 906w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/07\/JWT\u306e\u6d41\u308c-1-300x127.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/07\/JWT\u306e\u6d41\u308c-1-768x326.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/p>\n<p>\u30dd\u30a4\u30f3\u30c8\u3068\u3057\u3066\u306f\u3001JWT\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300c<\/strong><strong>\u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u300d\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u3066\u3001\u305d\u306e\u5f8c\u3001\u4f55\u5ea6\u3082\u8a8d\u8a3c\u306b\u5229\u7528\u3055\u308c\u308b<\/strong><\/span>\u70b9\u3067\u3059\u3002<\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u3064\u3044\u3066\u306f\u3001\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"JiPIImxrbp\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=5509\">\u3010JavaScript\u3011\u300cWeb Storage(\u30b9\u30c8\u30ec\u30fc\u30b8)\u300d\u3001\u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u5b9f\u88c5\u306a\u3069<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010JavaScript\u3011\u300cWeb Storage(\u30b9\u30c8\u30ec\u30fc\u30b8)\u300d\u3001\u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u5b9f\u88c5\u306a\u3069&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" src=\"http:\/\/www.code-magagine.com\/?p=5509&#038;embed=true#?secret=d2qH6xTrhP#?secret=JiPIImxrbp\" data-secret=\"JiPIImxrbp\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u307e\u305f\u3001\u30b5\u30a4\u30c9JWT\u304c\u6539\u3056\u3093\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u5834\u5408\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u30e6\u30fc\u30b6\u30fcID\u300d\u3068\u300c\u6709\u52b9\u671f\u9650\u300d\u3092\u30bb\u30c3\u30c8\u3067\u691c\u8a3c<\/strong><\/span>\u3057\u307e\u3059\u3002<\/p>\n<h2>JWT\u306e\u7528\u9014<\/h2>\n<p>\u4e3b\u306b\u3001\u691c\u8a3c\u30b5\u30fc\u30d0\u30fc\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002\u305f\u3060\u3001\u6628\u4eca\u306e\u6d41\u308c\u3068\u3057\u3066\u306f\u3044\u304f\u3089\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u3092\u6697\u53f7\u5316\u3057\u305f\u304b\u3089\u3068\u3044\u3063\u3066\u81ea\u5206\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u305d\u3046\u3057\u305f\u60c5\u5831\u3092\u4fdd\u6301\u3059\u308b\u306e\u306f\u3088\u304f\u306a\u3044\u3068\u8a00\u308f\u308c\u3066\u3044\u308b\u306e\u3067Auth0\u306a\u308a\u3001Firebase\u306a\u308aCognito\u306a\u308a\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u88fd\u54c1\u3092\u4f7f\u3063\u305f\u65b9\u304c\u671b\u307e\u3057\u3044\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>JWT\u306e\u69cb\u6210<\/h2>\n<p>JWT\u306f\u3001\u4e0b\u8a18\u306e\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">\u30d8\u30c3\u30c0.\u4e2d\u8eab.\u96fb\u5b50\u7f72\u540d<\/pre>\n<h3>\u30d8\u30c3\u30c0<\/h3>\n<p>\u7f72\u540d\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u7b49\u306e\u30e1\u30bf\u60c5\u5831\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002\uff08base64\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u3002\uff09<\/p>\n<h3>\u4e2d\u8eab<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fcID\u3084\u3001\u6709\u52b9\u671f\u9650\u7b49\u306eJWT\u306e\u4e2d\u8eab\u306e\u60c5\u5831\u304cJSON\u5f62\u5f0f\u3067\u5165\u3063\u3066\u3044\u307e\u3059\u3002\uff08base64\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u3002\uff09<\/p>\n<h3>\u96fb\u5b50\u7f72\u540d<\/h3>\n<p>\u691c\u8a3c\u306b\u5229\u7528\u3055\u308c\u308b\u96fb\u5b50\u7f72\u540d\u306e\u60c5\u5831\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"JWT(Json Web Token)\u3068\u306f\uff1f \u96fb\u5b50\u7f72\u540d\u4ed8\u304d\u306eURL\u30bb\u30fc\u30d5(URL\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u308b\u6587\u5b57\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u308b)\u306aJSON\u5f62\u5f0f\u306e\u30c8\u30fc\u30af\u30f3\u306e\u3053\u3068\u3067\u3059\u3002\u300c\u30b8\u30a7\u30fc\u30c0\u30d6\u30ea\u30e5\u30fc\u30c6\u30a3\u30fc\u300d\u3067\u306f\u306a\u304f\u300c\u30b8\u30e7\u30c3\u30c8\u300d\u3068\u8aad\u307f\u307e\u3059\u3002 \u30b5\u30a4\u30ba [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5618"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5618"}],"version-history":[{"count":19,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5618\/revisions"}],"predecessor-version":[{"id":20669,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5618\/revisions\/20669"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5618"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}