{"id":1530,"date":"2021-02-25T20:38:22","date_gmt":"2021-02-25T11:38:22","guid":{"rendered":"https:\/\/blog.fourthgate.jp\/?p=1530"},"modified":"2021-09-19T09:51:06","modified_gmt":"2021-09-19T00:51:06","slug":"cakephp4-2%e3%81%a7%e3%81%aedebug-kit","status":"publish","type":"post","link":"https:\/\/blog.fourthgate.jp\/?p=1530","title":{"rendered":"CakePHP4.2\u306eDebug Kit\u3067missing route\u304c\u8d77\u304d\u305f\u5834\u5408\u306e\u5bfe\u51e6"},"content":{"rendered":"<p>\u4ee5\u4e0b\u3001\u306a\u3093\u3068\u306a\u304f\u2026\u306e\u304a\u8a71\u3067\u3059\u3002<\/p>\n<p>CakePHP4.2.x\u3067<\/p>\n<ul>\n<li>Authentication\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<li><a href=\"https:\/\/github.com\/andrej-griniuk\/cakephp-two-factor-auth\" rel=\"noopener\" target=\"_blank\">TwoFactorAuth\u30d7\u30e9\u30b0\u30a4\u30f3<\/a><\/li>\n<\/ul>\n<p>\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u3001Debug Kit\u304cmissing route\u306b\u306a\u3063\u3066\u52d5\u304b\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3067\u3001\u305f\u3069\u308a\u7740\u3044\u305f\u306e\u304c\u3001unauthenticatedRedirect\u3084loginUrl\u306e\u6307\u5b9a\u65b9\u6cd5\u3002<br \/>\n<a href=\"https:\/\/book.cakephp.org\/authentication\/2\/en\/index.html\" rel=\"noopener\" target=\"_blank\">cookbook<\/a>\u3067\u306f\u3001<\/p>\n<p><code>$service->setConfig(['unauthenticatedRedirect' => Router::url(['prefix' => false,'plugin' => null,'controller' => 'Users','action' => 'login',]),'queryParam' => 'redirect',]);<\/code><\/p>\n<p>\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092<\/p>\n<p><code>$service->setConfig(['unauthenticatedRedirect' => '\/users\/login']),'queryParam' => 'redirect',]);<\/code><\/p>\n<p>\u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3068\u3001Debug Kit\u306emissing route\u304c\u89e3\u6d88\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u306a\u3093\u3068\u306a\u304f\u2026\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u3001\u306a\u3093\u3068\u306a\u304f\u2026\u306e\u304a\u8a71\u3067\u3059\u3002 CakePHP4.2.x\u3067 Authentication\u30d7\u30e9\u30b0\u30a4\u30f3 TwoFactorAuth\u30d7\u30e9\u30b0\u30a4\u30f3 \u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u3001Debug Kit\u304cmissing route\u306b\u306a\u3063\u3066\u52d5\u304b\u306a &hellip; <a href=\"https:\/\/blog.fourthgate.jp\/?p=1530\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1530","post","type-post","status-publish","format-standard","hentry","category-web"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts\/1530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1530"}],"version-history":[{"count":7,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts\/1530\/revisions"}],"predecessor-version":[{"id":1541,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts\/1530\/revisions\/1541"}],"wp:attachment":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}