{"id":13366,"date":"2021-04-18T20:05:03","date_gmt":"2021-04-18T11:05:03","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=13366"},"modified":"2023-05-28T08:20:28","modified_gmt":"2023-05-27T23:20:28","slug":"%e3%80%90%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e3%80%91%e3%80%8coauth%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=13366","title":{"rendered":"\u3010\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3011\u300cOAuth\u300d\u3001\u300cOpen ID Connect\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>OAuth\u3068\u306f\uff1f<\/h2>\n<p>\u73fe\u5728\u306eWeb API\u306b\u304a\u3044\u3066\u975e\u5e38\u306b\u5e83\u304f\u4e00\u822c\u7684\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u6a19\u6e96\u4ed5\u69d8\u3067\u3059\u3002\u57fa\u672c\u7684\u306b\u5e83\u304f\u7b2c\u4e09\u8005\u306b\u516c\u958b\u3055\u308c\u308bAPI\u306b\u304a\u3044\u3066\u8a8d\u53ef\u3092\u884c\u3046\u305f\u3081\u306b\u7528\u3044\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>API\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a8d\u53ef\uff08\u5236\u5fa1\uff09\u3057\u3066\u91cd\u8981\u306a\u30c7\u30fc\u30bf\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u5fa1\u3059\u308bHTTP\u30d9\u30fc\u30b9\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3002\u30a2\u30d7\u30ea\u958b\u767a\u306b\u304a\u3044\u3066\u3001\u30a2\u30d7\u30ea\u3092\u5b89\u5168\u306b\u6271\u3046\u305f\u3081\u306e\u6a19\u6e96\u5316\u3055\u308c\u305f\u4ed5\u7d44\u307f\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30a2\u30d7\u30ea\u306e\u6240\u6709\u8005\u304c\u8ab0\u304b\u3092\u660e\u793a\u5316\u3057\u3066\u306a\u308a\u3059\u307e\u3057\u3092\u9632\u6b62\u3055\u305b\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3002<\/p>\n<p>\u8a8d\u53ef\u3068\u805e\u304f\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30e6\u30fc\u30b6\u30fc\u306b\u8a31\u53ef\u3059\u308b\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3092\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001OAuth\u306e\u5834\u5408\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u30e6\u30fc\u30b6\u30fc\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u3066\u8a8d\u53ef\u3092\u3059\u308b\u4ed5\u7d44\u307f<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u60c5\u5831\u3092\u6301\u3063\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9A\u304c\u3001\u30b5\u30fc\u30d3\u30b9B\u306b\u5bfe\u3057\u3066API\u3092\u516c\u958b\u3059\u308b\u5834\u5408\u306b\u3001\u30b5\u30fc\u30d3\u30b9A\u306e\u60c5\u5831\u3092\u30b5\u30fc\u30d3\u30b9B\u306b\u5bfe\u3057\u3066\u5229\u7528\u3057\u3066\u7528\u610f\u304b\u8a31\u53ef\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>\u7528\u9014<\/h2>\n<ul>\n<li>\u4e00\u822c\u7684\u306aWeb\u30b5\u30fc\u30d3\u30b9\u306e\u9023\u643a<\/li>\n<li>\u4f01\u696d\u5185\u30b7\u30b9\u30c6\u30e0\u3092\u30af\u30e9\u30a6\u30c9\u9023\u643a\u3055\u305b\u308b\u76ee\u7684<\/li>\n<\/ul>\n<h2>\u5229\u7528\u30b5\u30fc\u30d3\u30b9\u4f8b<\/h2>\n<ul>\n<li>Facebook<\/li>\n<li>Twitter<\/li>\n<li>Google<\/li>\n<\/ul>\n<h2>\u30d0\u30fc\u30b8\u30e7\u30f3<\/h2>\n<h3>1.0<\/h3>\n<p>\u77ac\u304f\u9593\u306b\u4e16\u306b\u5e83\u304c\u3063\u3066\u3044\u3063\u305f\u3002\u30e2\u30ce\u30b7\u30ea\u30c3\u30af\u306a\u30d7\u30ed\u30c8\u30b3\u30eb\u3060\u3063\u305f\u3002<\/p>\n<h4>\u5f31\u70b9<\/h4>\n<ul>\n<li>\u30bb\u30c3\u30b7\u30e7\u30f3ID\u56fa\u5b9a\u5316\u653b\u6483\u306b\u5f31\u304b\u3063\u305f\u3002<\/li>\n<\/ul>\n<h3>2.0<\/h3>\n<p>2012\u5e74\u3054\u308d\u306b\u516c\u958b\u3055\u308c\u305f\u3002<\/p>\n<p>\u30e2\u30ce\u30b7\u30ea\u30c3\u30af\u3067\u306f\u306a\u304f\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u306a\u3063\u305f\u3002<\/p>\n<h2>\u5229\u70b9<\/h2>\n<p>\u5e83\u304f\u8a8d\u77e5\u3055\u308c\u3066\u5165\u308c\u30b5\u30fc\u30d0\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3082\u306b\u69d8\u3005\u306a\u8a00\u8a9e\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308a\u5b9f\u88c5\u30b3\u30b9\u30c8\u304c\u4f4e\u3044\u3002<\/p>\n<h3>\u60aa\u610f\u3042\u308b\u30a2\u30d7\u30ea\u958b\u767a\u8005\u306e\u6291\u5236\uff08\u5916\u90e8\u30a2\u30d7\u30ea\u3078\u306e\u64cd\u4f5c\u6a29\u9650\u3092\u9650\u5b9a\u7684\u306b\u3067\u304d\u308b\u3002\uff09<\/h3>\n<p>\u3082\u3057\u3001\u3053\u308c\u304c\u306a\u304b\u3063\u305f\u3089\u300c\u30e6\u30fc\u30b6\u30fc\u540d\u300d\u3068\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u3092\u5916\u90e8\u30a2\u30d7\u30ea\u306b\u6559\u3048\u308b\u3057\u304b\u306a\u304f\u306a\u308b\u3002\u4f55\u5ea6\u3082\u5165\u529b\u3059\u308b\u306e\u306f\u7169\u308f\u3057\u3044\u306e\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30a2\u30d7\u30ea\u5074\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002<span style=\"color: #ff0000;\"><strong>\u305d\u3046\u3059\u308b\u3068\u4eee\u306b\u5916\u90e8\u30a2\u30d7\u30ea\u306e\u958b\u767a\u8005\u304c\u60aa\u610f\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u3060\u3063\u305f\u5834\u5408\u306f\u3001\u5229\u7528\u8005\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/strong><\/span><\/p>\n<p>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u3042\u308c\u3070\u3001\u4eee\u306b\u30c8\u30fc\u30af\u30f3\u60c5\u5831\u304c\u6f0f\u308c\u305f\u3068\u3057\u3066\u3082\u64cd\u4f5c\u3092\u9650\u5b9a\u7684\u306b\u3067\u304d\u308b\u3002\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u64cd\u4f5c\u306a\u3069\uff09<\/p>\n<h3>\u60aa\u610f\u3042\u308b\u30a2\u30d7\u30ea\u958b\u767a\u8005\u306e\u6291\u5236\uff08\u7279\u5b9a\u306e\u30a2\u30d7\u30ea\u3060\u3051\u30a2\u30af\u30bb\u30b9\u3092\u906e\u65ad\u3067\u304d\u308b\u3002\uff09<\/h3>\n<p>OAuth\u3092\u4f7f\u3048\u3070\u3001\u8a72\u5f53\u306e\u60aa\u610f\u3042\u308b\u30a2\u30d7\u30ea\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u906e\u65ad\u3067\u304d\u308b\u3002<\/p>\n<h3>\u653b\u6483\u306b\u5f37\u3044\u3002<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u306b\u6bd4\u3079\u3066\u60c5\u5831\u6f0f\u6d29\u306b\u5f37\u3044\u3002<\/p>\n<p>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u81ea\u4f53\u304c\u6f0f\u6d29\u3059\u308b\u53ef\u80fd\u6027\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u6709\u52b9\u671f\u9650\u304c\u3042\u308a\u3001\u304b\u3064\u9650\u5b9a\u7684\u306a\u6a29\u9650\u3057\u304b\u306a\u3044\u306e\u3067\u5f71\u97ff\u306f\u9650\u5b9a\u7684\u3002<\/p>\n<h2>\u4ed5\u7d44\u307f\u3001\u6d41\u308c<\/h2>\n<p>\u4e00\u5ea6\u30b5\u30fc\u30d3\u30b9A(Twitter\u306a\u3069)\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u767a\u884c\u3055\u308c\u3066\u305d\u306e\u30c8\u30fc\u30af\u30f3\u3092\u7528\u3044\u308c\u3070\u30b5\u30fc\u30d3\u30b9B\u306f\u30a2\u30af\u30bb\u30b9\u304c\u8a31\u53ef\u3055\u308c\u305f\u7269\u3060\u3068\u8a8d\u8b58\u3057\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\u306a\u3057\u3067\u30b5\u30fc\u30d3\u30b9A\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30b0\u30e9\u30f3\u30c9\u30bf\u30a4\u30d7<\/h2>\n<p>\u300c\u30b0\u30e9\u30f3\u30c9\u300d\u306f\u300c\u4ed8\u4e0e\u300d\u3068\u3044\u3046\u610f\u5473\u3002\u6a29\u9650\u59d4\u8b72\u306e\u3053\u3068\u3092\u6307\u3057\u3066\u3044\u308b\u3002\u6a19\u6e96\u4ed5\u69d8\u3067\u306f\u4ee5\u4e0b\u306e4\u3064\u304c\u3042\u308b\u3002<\/p>\n<h3>\u8a8d\u53ef\u30b3\u30fc\u30c9\u30b0\u30e9\u30f3\u30c9<\/h3>\n<p>\u6700\u3082\u91cd\u8981\u306a\u30b0\u30e9\u30f3\u30c9\u3002\u30b3\u30f3\u30d5\u30a3\u30c7\u30f3\u30b7\u30e3\u30eb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8(\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30a2\u30d7\u30ea\u306a\u3069)\u306f\u3053\u308c\u3092\u4f7f\u3046\u3002<\/p>\n<h4>\u7279\u5fb4<\/h4>\n<p>\u30bb\u30ad\u30e5\u30a2\u3067\u3042\u308b\u3053\u3068\u3002\uff08\u30d6\u30e9\u30a6\u30b6\u3092\u4ecb\u3055\u305a\u306b\u76f4\u63a5\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u9593\u3067\u53d7\u3051\u6e21\u3055\u308c\u308b\u305f\u3081\u6d41\u51fa\u3059\u308b\u30ea\u30b9\u30af\u304c\u4f4e\u3044\u3002\uff09<\/p>\n<h4>PKCE\u3092\u7528\u3044\u305f\u8a8d\u53ef\u30b3\u30fc\u30c9\u30b0\u30e9\u30f3\u30c9<\/h4>\n<p>\u30d1\u30d6\u30ea\u30c3\u30af\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u5834\u5408\u306e\u30b0\u30e9\u30f3\u30c9\u30bf\u30a4\u30d7\u3068\u3057\u3066\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<h3>\u30a4\u30f3\u30d7\u30ea\u30b7\u30c3\u30c8\u30b0\u30e9\u30f3\u30c9<\/h3>\n<h3>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u30b0\u30e9\u30f3\u30c9<\/h3>\n<h3>\u30ea\u30bd\u30fc\u30b9\u30aa\u30fc\u30ca\u30fc\u30d1\u30b9\u30ef\u30fc\u30c9\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb<\/h3>\n<h2>Open ID Connect\u3068\u306f\uff1f<\/h2>\n<p>OAuth2.0\u3092\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u3068\u3057\u3066\u6d3b\u7528\u3059\u308b\u305f\u3081\u306b\u62e1\u5f35\u3057\u305f\u3082\u306e\u3067\u3059\u3002OpenID Foundation\u3068\u3044\u3046\u7d44\u7e54\u304c2014\u5e74\u306b\u4ed5\u69d8\u3092\u516c\u958b\u3057\u305f\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069OAuth\u3068\u5909\u308f\u3089\u306a\u3044\u3067\u3059\u304c\u3001OAuth\u306b\u5bfe\u3057\u3066<span style=\"color: #ff0000;\"><strong>\u672c\u4eba\u60c5\u5831\u53d6\u5f97<\/strong><\/span>\u3092\u52a0\u3048\u305f\u4ed5\u7d44\u307f\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>OAuth2.0\u304b\u3089\u306e\u62e1\u5f35\u5185\u5bb9<\/h3>\n<p>\u4ee5\u4e0b\u3092\u5b9a\u3081\u305f\u3053\u3068\u3002<\/p>\n<ul>\n<li>ID\u30c8\u30fc\u30af\u30f3(JWT)<\/li>\n<li>\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff08\u30c7\u30fc\u30bf\u9001\u53d7\u4fe1\u3059\u308b\u305f\u3081\u306eURL)<\/li>\n<\/ul>\n<h3>ID\u30c8\u30fc\u30af\u30f3(JWT)\u306e\u5229\u70b9<\/h3>\n<p>\u300c\u30e6\u30fc\u30b6\u30fc\u3092\u7279\u5b9a\u3059\u308bID\u300d\u3084\u300c\u8a8d\u8a3c\u3057\u305f\u65e5\u6642\u300d\u306a\u3069\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u307e\u305f\u3001\u300c\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u300d\u304b\u3089\u69d8\u3005\u306a\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\uff08\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u306a\u3069\uff09\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>OIDC\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h3>\n<h4>SNS\u306a\u3069\u306e\u30b5\u30a4\u30c8\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u305f\u3044\u3002<\/h4>\n<h4>SNS\u306a\u3069\u306e\u8a8d\u8a3c\u3092\u4efb\u305b\u305f\u3044\u3002<\/h4>\n<h4>\u793e\u5185\u30b7\u30f3\u30b0\u30eb\u30b5\u30a4\u30aa\u30f3\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u3057\u305f\u3044\u3002<\/h4>\n<h5>\u30af\u30e9\u30a6\u30c9\u306a\u3089<\/h5>\n<ul>\n<li>Auth0\u3001Okta<\/li>\n<\/ul>\n<h4>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u30b5\u30fc\u30d3\u30b9\u9593\u3067\u5b89\u5168\u306bAPI\u3092\u547c\u3073\u5408\u3044\u305f\u3044\u3002<\/h4>\n","protected":false},"excerpt":{"rendered":"OAuth\u3068\u306f\uff1f \u73fe\u5728\u306eWeb API\u306b\u304a\u3044\u3066\u975e\u5e38\u306b\u5e83\u304f\u4e00\u822c\u7684\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u6a19\u6e96\u4ed5\u69d8\u3067\u3059\u3002\u57fa\u672c\u7684\u306b\u5e83\u304f\u7b2c\u4e09\u8005\u306b\u516c\u958b\u3055\u308c\u308bAPI\u306b\u304a\u3044\u3066\u8a8d\u53ef\u3092\u884c\u3046\u305f\u3081\u306b\u7528\u3044\u3089\u308c\u307e\u3059\u3002 API\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a8d\u53ef\uff08\u5236\u5fa1\uff09\u3057\u3066\u91cd\u8981\u306a\u30c7\u30fc\u30bf\u3078\u306e [&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\/13366"}],"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=13366"}],"version-history":[{"count":7,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/13366\/revisions"}],"predecessor-version":[{"id":20730,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/13366\/revisions\/20730"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13366"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}