{"id":13933,"date":"2021-08-08T10:57:51","date_gmt":"2021-08-08T01:57:51","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=13933"},"modified":"2023-05-28T08:20:06","modified_gmt":"2023-05-27T23:20:06","slug":"%e3%80%90oauth%e3%80%91%e3%80%8c%e3%83%88%e3%83%bc%e3%82%af%e3%83%b3%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=13933","title":{"rendered":"\u3010OAuth\u3011\u300c\u30c8\u30fc\u30af\u30f3\u300d\u3001\u300c\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u300d\u3001\u300c\u30ed\u30fc\u30eb\u300d"},"content":{"rendered":"<p>\u5168\u3066\u3001\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u767a\u884c\u3055\u308c\u308b\u3002\uff08\u4f8b\u3048\u3070\u3001Cognito\u304b\u3089Web\u30a2\u30d7\u30ea\u306b\u5bfe\u3057\u3066\u306a\u3069\uff09<\/p>\n<h2>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3<\/h2>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u3001\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u308c\u3089\u308c\u308b\u3002<\/p>\n<p>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306b\u306f\u4ee5\u4e0b\u306e\u60c5\u5831\u304c\u7d10\u3065\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u8ab0\u304c\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u3069\u306e\u3088\u3046\u306a\u64cd\u4f5c\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u304c\u8a31\u3055\u308c\u3066\u3044\u308b\u304b\u3002\uff08\u8a8d\u53ef\u60c5\u5831\u304c\u5165\u3063\u3066\u3044\u308b\uff09<\/li>\n<li>\u6709\u52b9\u671f\u9650\u306f\u3044\u3064\u307e\u3067\u304b\u3002<\/li>\n<\/ul>\n<h3>Bearer\u30c8\u30fc\u30af\u30f3<\/h3>\n<p>OAuth\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306f\u3053\u308c\u3002\u3088\u3063\u3066\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306f\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306e\u9001\u4fe1\u5143\u3092\u78ba\u8a8d\u3057\u306a\u3044\u3002<\/p>\n<p>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u6240\u6709\u3057\u3066\u3044\u308c\u3070\u3001\u305d\u308c\u3060\u3051\u3067\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u3068\u306a\u308b\u3002<\/p>\n<h3>\u91cd\u8981\u306a\u5c5e\u6027<\/h3>\n<h4>\u30b9\u30b3\u30fc\u30d7<\/h4>\n<p>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306b\u7d10\u3065\u304f\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u304d\u3081\u7d30\u3084\u304b\u306b\u8a2d\u5b9a\u3059\u308b\u4ed5\u7d44\u307f\u3002\u57fa\u672c\u7684\u306b\u6700\u5c0f\u9650\u306e\u6a29\u9650\u306b\u3059\u3079\u304d\u3002<\/p>\n<h4>\u6709\u52b9\u671f\u9650<\/h4>\n<p>\u6709\u52b9\u671f\u9650\u3092\u3059\u304e\u305f\u30a2\u30af\u30bb\u30b9\u306f\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306b\u3088\u3063\u3066\u62d2\u5426\u3055\u308c\u308b\u3002<\/p>\n<p>\u6709\u52b9\u671f\u9650\u304c\u6765\u308b\u307e\u3067\u306f\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u4f55\u5ea6\u3067\u3082\u5229\u7528\u3067\u304d\u308b\u3002<\/p>\n<h2>\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u30c8\u30fc\u30af\u30f3<\/h2>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u306b\u5bfe\u3057\u3066\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306e\u518d\u767a\u884c\u3092\u3059\u308b\u969b\u306b\u5229\u7528\u3055\u308c\u308b\u3002\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306b\u6bd4\u3079\u3066\u9065\u304b\u306b\u9577\u3044\u6709\u52b9\u671f\u9650\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<h3>\u306a\u305c\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u30c8\u30fc\u30af\u30f3\u304c\u3042\u308b\u306e\uff1f<\/h3>\n<p>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306e\u6709\u52b9\u671f\u9650\u3092\u9577\u304f\u3059\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u8a71\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3001<span style=\"color: #ff0000;\"><strong>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306fAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u305f\u3073\u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u6d41\u308c\u308b\u60c5\u5831\u306b\u306a\u308b\u306e\u3067\u6f0f\u6d29\u30ea\u30b9\u30af\u304c\u9ad8\u3044<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u30c8\u30fc\u30af\u30f3\u306f\u57fa\u672c\u7684\u306b\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u518d\u767a\u884c\u3059\u308b\u969b\u3057\u304b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u6d41\u51fa\u3057\u306a\u3044\u306e\u3067\u6f0f\u6d29\u30ea\u30b9\u30af\u306f\u4f4e\u3044\u305f\u3081\u5206\u3051\u3066\u30c8\u30fc\u30af\u30f3\u3092\u4fdd\u5b58\u3059\u308b\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u8a8d\u53ef\u30b3\u30fc\u30c9<\/h2>\n<p>\u30ea\u30bd\u30fc\u30b9\u30aa\u30fc\u30ca\u30fc\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u306e\u6a29\u9650\u59d4\u8b72\u3092\u540c\u610f\u3057\u305f\u8a3c<\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u8981\u6c42\u3059\u308b\u969b\u306b\u5229\u7528\u3055\u308c\u308b\u3002<\/p>\n<p>\u8a8d\u53ef\u30b3\u30fc\u30c9\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u3092\u901a\u3058\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e\u3067\u6709\u52b9\u671f\u9650\u306f\u975e\u5e38\u306b\u77ed\u304f10\u5206\u4ee5\u5185\u3068\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<h2>\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8<\/h2>\n<h3>\u8a8d\u53ef\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8<\/h3>\n<p>\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u304c\u63d0\u4f9b\u3059\u308bURI\u3001\u8a8d\u53ef\u30b3\u30fc\u30c9\u306e\u767a\u884c\u304c\u4e3b\u306a\u5f79\u5272\u3002<\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306f\u307e\u305a\u3053\u3053\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002\u30e6\u30fc\u30b6\u30fc\u306f\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u6a29\u9650\u3092\u59d4\u8b72\u3057\u3066\u8a8d\u53ef\u30b3\u30fc\u30c9\u304c\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u9001\u3089\u308c\u308b\u3002<\/p>\n<h3>\u30c8\u30fc\u30af\u30f3\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8<\/h3>\n<p>\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u304c\u63d0\u4f9b\u3059\u308bURI\u3001\u8a8d\u53ef\u30b3\u30fc\u30c9\u3068\u5fc5\u8981\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3053\u3053\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6295\u3052\u308b\u3053\u3068\u3067\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3067\u304d\u308b\u3002<\/p>\n<p>Basic\u8a8d\u8a3c\u306b\u3088\u3063\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a8d\u8a3c\u304c\u884c\u308f\u308c\u308b\u3002<\/p>\n<h3>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8<\/h3>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u63d0\u4f9b\u3059\u308bURI\u3001\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u8a8d\u53ef\u30b3\u30fc\u30c9\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u308b\u3002<\/p>\n<h2>\u30ed\u30fc\u30eb<\/h2>\n<p>OAuth\u306b\u306f4\u3064\u306e\u30ed\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30ea\u30bd\u30fc\u30b9\u30aa\u30fc\u30ca\u30fc<\/h3>\n<p>\u30ea\u30bd\u30fc\u30b9\u306e\u6240\u6709\u8005\u3001API\u3092\u4f7f\u3046\u30a2\u30d7\u30ea\u3092\u5229\u7528\u3059\u308b\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u3001\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6a29\u9650\u3092\u59d4\u8b72\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff08API\u3092\u4f7f\u3046\u30a2\u30d7\u30ea\uff09<\/h3>\n<p>\u30ea\u30bd\u30fc\u30b9\u30aa\u30fc\u30ca\u30fc\u304b\u3089\u8a31\u53ef\u3055\u308c\u305f\u7bc4\u56f2\u5185\u3067\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u3001\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u7a2e\u985e\u306f\u554f\u3044\u307e\u305b\u3093\u3002<\/p>\n<h4>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30bf\u30a4\u30d7<\/h4>\n<p>OAuth\u3067\u306f\u300c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u300d\u3001\u300c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u300d\u306e\u4e8c\u3064\u3092\u30bb\u30ad\u30e5\u30a2\u306b\u4fdd\u5b58\u3067\u304d\u308b\u304b\u3067\u4e8c\u3064\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30bf\u30a4\u30d7\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3002<\/p>\n<h5>\u30b3\u30f3\u30d5\u30a3\u30c7\u30f3\u30b7\u30e3\u30eb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/h5>\n<p>\u30bb\u30ad\u30e5\u30a2\u306b\u4fdd\u5b58\u3067\u304d\u308b\u5834\u5408\u3002\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306eWeb\u30a2\u30d7\u30ea\u306a\u3069\u306f\u3053\u308c\u3002<\/p>\n<h5>\u30d1\u30d6\u30ea\u30c3\u30af\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/h5>\n<p>\u30bb\u30ad\u30e5\u30a2\u306b\u4fdd\u5b58\u3067\u304d\u306a\u3044\u5834\u5408\u3002\u30d6\u30e9\u30a6\u30b6\u30d9\u30fc\u30b9\u3084\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u306a\u3069\u306f\u3053\u308c\u3002<\/p>\n<h3>\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\uff08API\u3092\u63d0\u4f9b\u3059\u308b\u30a2\u30d7\u30ea\uff09<\/h3>\n<p>Web API\u306e\u3053\u3068\u3002<\/p>\n<h3>\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\uff08OAuth)<\/h3>\n<p>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u3053\u3068\u3002<\/p>\n<h4>\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u306e\u6a5f\u80fd<\/h4>\n<ul>\n<li>\u30ea\u30bd\u30fc\u30b9\u30aa\u30fc\u30ca\u30fc\u3092\u8a8d\u8a3c\u3059\u308b\u3002<\/li>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306b\u3064\u3044\u3066\u30ea\u30bd\u30fc\u30b9\u30aa\u30fc\u30ca\u30fc\u306e\u540c\u610f\u3092\u5f97\u308b\u3002<\/li>\n<li>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u5168\u3066\u3001\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u767a\u884c\u3055\u308c\u308b\u3002\uff08\u4f8b\u3048\u3070\u3001Cognito\u304b\u3089Web\u30a2\u30d7\u30ea\u306b\u5bfe\u3057\u3066\u306a\u3069\uff09 \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u3001\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u308c\u3089\u308c\u308b\u3002 \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306b\u306f\u4ee5\u4e0b\u306e\u60c5\u5831\u304c\u7d10\u3065\u3044\u3066\u3044 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/13933"}],"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=13933"}],"version-history":[{"count":8,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/13933\/revisions"}],"predecessor-version":[{"id":20729,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/13933\/revisions\/20729"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13933"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}