{"id":32127,"date":"2025-12-29T19:23:36","date_gmt":"2025-12-29T19:23:36","guid":{"rendered":"https:\/\/www.dotcom-monitor.com\/blog\/auth-code-flow-redirect-uri-mismatch-monitoring\/"},"modified":"2026-05-21T15:30:24","modified_gmt":"2026-05-21T15:30:24","slug":"auth-code-flow-redirect-uri-mismatch-monitoring","status":"publish","type":"post","link":"https:\/\/www.dotcom-monitor.com\/blog\/ja\/auth-code-flow-redirect-uri-mismatch-monitoring\/","title":{"rendered":"Authorization Code Flow \u3068 redirect_uri_mismatch \u30a8\u30e9\u30fc\uff1a\u76e3\u8996\u3068\u4fee\u6b63"},"content":{"rendered":"

\"AuthorizationOAuth 2.0 \u3092 Authorization Code Flow<\/b> \u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u5834\u5408\u3001redirect_uri_mismatch<\/b> \u30a8\u30e9\u30fc\u306b\u5c11\u306a\u304f\u3068\u3082\u4e00\u5ea6\u306f\u906d\u9047\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u8a8d\u8a3c\u3092\u7d71\u5408\u3059\u308b\u969b\u306b\u30c1\u30fc\u30e0\u304c\u76f4\u9762\u3059\u308b\u3001\u6700\u3082\u4e00\u822c\u7684\uff08\u304b\u3064\u6700\u3082\u8aa4\u89e3\u3055\u308c\u3084\u3059\u3044\uff09OAuth \u969c\u5bb3\u306e\u4e00\u3064\u3067\u3059\u3002<\/p>\n

\u8868\u9762\u7684\u306b\u306f\u3001\u3053\u306e\u30a8\u30e9\u30fc\u306f\u975e\u5e38\u306b\u5358\u7d14\u3067\u3059\u3002\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u9001\u4fe1\u3055\u308c\u305f redirect URI \u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b redirect URI \u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002\u5b8c\u5168\u306b<\/i> \u4e00\u81f4\u3057\u306a\u3051\u308c\u3070\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u62d2\u5426\u3055\u308c\u307e\u3059\u3002\u591a\u304f\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001\u3053\u308c\u3092\u4e00\u5ea6\u9650\u308a\u306e\u8a2d\u5b9a\u30df\u30b9\u3068\u3057\u3066\u6271\u3044\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u8868\u793a\u3055\u308c\u305f URI \u3092\u30b3\u30d4\u30fc\u3057\u3066 OAuth \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u7ba1\u7406\u753b\u9762\u306b\u8ffd\u52a0\u3057\u3001\u518d\u8a66\u884c\u3059\u308c\u3070\u3088\u3044\u3068\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u3057\u304b\u3057\u3001\u5b9f\u969b\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u3053\u306e\u30a8\u30e9\u30fc\u304c\u521d\u671f\u8a2d\u5b9a\u3060\u3051\u306b\u9650\u5b9a\u3055\u308c\u308b\u3053\u3068\u306f\u307b\u3068\u3093\u3069\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n

redirect_uri_mismatch \u306f\u3001\u30c7\u30d7\u30ed\u30a4\u5f8c<\/b>\u3001\u74b0\u5883\u5909\u66f4\u6642<\/b>\u3001\u3042\u308b\u3044\u306f \u672c\u756a\u74b0\u5883\u306e\u307f<\/b> \u3067\u3001\u7d71\u5408\u304c\u5b89\u5b9a\u3057\u3066\u3044\u308b\u3068\u601d\u308f\u308c\u3066\u304b\u3089\u9577\u3044\u6642\u9593\u304c\u7d4c\u3063\u3066\u518d\u767a\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002HTTPS \u306e\u5f37\u5236\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u30d1\u30b9\u306e\u5909\u66f4\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\u5c0e\u5165\u3001\u74b0\u5883\u9593\u3067\u306e\u30d3\u30eb\u30c9\u6607\u683c\u3068\u3044\u3063\u305f\u5c0f\u3055\u306a\u5909\u66f4\u304c\u3001\u4ee5\u524d\u306f\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u305f redirect URI \u3092\u9759\u304b\u306b\u7121\u52b9\u5316\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u3002<\/p>\n

Authorization Code Flow \u306f\u30d6\u30e9\u30a6\u30b6\u4e3b\u5c0e\u3067\u3042\u308b\u305f\u3081\u3001\u3053\u308c\u3089\u306e\u969c\u5bb3\u306f\u660e\u78ba\u306a\u30a4\u30f3\u30d5\u30e9\u30a2\u30e9\u30fc\u30c8\u3067\u306f\u306a\u304f\u3001\u30ed\u30b0\u30a4\u30f3\u4f53\u9a13\u306e\u7834\u7dbb\u3068\u3057\u3066\u73fe\u308c\u307e\u3059\u3002\u8a8d\u8a3c\u306e\u6319\u52d5\u3092\u6642\u9593\u8ef8\u3067\u628a\u63e1\u3067\u304d\u306a\u3051\u308c\u3070\u3001\u30c1\u30fc\u30e0\u306f OAuth \u30d5\u30ed\u30fc\u304c\u4f9d\u7136\u3068\u3057\u3066\u60f3\u5b9a\u3069\u304a\u308a\u6a5f\u80fd\u3057\u3066\u3044\u308b\u304b\u3092\u4e8b\u524d\u306b\u691c\u8a3c\u3067\u304d\u305a\u3001\u30e6\u30fc\u30b6\u30fc\u5831\u544a\u3078\u306e\u5f8c\u8ffd\u3044\u5bfe\u5fdc\u306b\u8ffd\u308f\u308c\u307e\u3059\u3002\u3053\u3053\u3067 Web API \u76e3\u8996\u306e\u4ed5\u7d44\u307f<\/b><\/a> \u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u5f71\u97ff\u304c\u51fa\u308b\u524d\u306b\u8a8d\u8a3c\u306e\u56de\u5e30\u3092\u691c\u77e5\u30fb\u9632\u6b62\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u672c\u8a18\u4e8b\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30a8\u30e9\u30fc\u304c\u306a\u305c\u767a\u751f\u3059\u308b\u306e\u304b\u3001\u6b63\u3057\u304f\u4fee\u6b63\u3059\u308b\u65b9\u6cd5\u3001\u305d\u3057\u3066 Authorization Code Flow \u3092\u672c\u756a\u74b0\u5883\u3067\u4fe1\u983c\u6027\u9ad8\u304f\u7dad\u6301\u3059\u308b\u305f\u3081\u306e\u76e3\u8996\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n

OAuth Authorization Code Flow \u3068\u306f\uff08\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u6700\u4f4e\u9650\uff09<\/h2>\n

OAuth 2.0 Authorization Code Flow<\/b> \u306f\u3001\u30d6\u30e9\u30a6\u30b6\u30d9\u30fc\u30b9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6700\u3082\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b OAuth \u30d5\u30ed\u30fc\u3067\u3059\u3002\u6700\u5927\u306e\u5229\u70b9\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3067\u3042\u308a\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u30d6\u30e9\u30a6\u30b6\u306b\u9732\u51fa\u305b\u305a\u3001\u30b5\u30fc\u30d0\u30fc\u9593\u3067\u4ea4\u63db\u3055\u308c\u308b\u70b9\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u5927\u307e\u304b\u306a\u6d41\u308c\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n