{"id":30688,"date":"2017-08-25T16:19:02","date_gmt":"2017-08-25T07:19:02","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=30688"},"modified":"2024-05-06T11:44:41","modified_gmt":"2024-05-06T02:44:41","slug":"%e3%80%90cakephp%e5%85%a5%e9%96%80%e3%80%91auth%e3%81%a7%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e3%81%ae%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e8%aa%8d%e8%a8%bc%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/30688","title":{"rendered":"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30e9\u30a4\u30bf\u30fc\u306e\u4e80\u7530\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u7528\u7684\u306aWeb\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u969b\u306b\u306f\u3001<span style=\"color: #0000ff\"><strong>\u8a8d\u8a3c\u6a5f\u80fd<\/strong><\/span>\u306f\u6b20\u304b\u305b\u307e\u305b\u3093\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3ID\u304a\u3088\u3073\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3068\u3044\u3046\u6d41\u308c\u306f\u3001\u3069\u306e\u3088\u3046\u306aWeb\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3057\u3066\u3082\u5fc5\u305a\u898b\u53d7\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001CakePHP\u3067\u3082\u3001\u8a8d\u8a3c\u6a5f\u80fd\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u306f\u8a00\u3048\u3001\u3053\u306e\u90e8\u5206\u306f<span style=\"color: #ff0000\"><strong>CakePHP\u306e\u521d\u5fc3\u8005\u306b\u3068\u3063\u3066\u306f\u304b\u306a\u308a\u96e3\u3057\u3044\u90e8\u5206<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3053\u3053\u3067\u306f\u3001<span style=\"color: #ff0000;background-color: #ffff99\"><strong>\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4ea4\u3048\u306a\u304c\u3089\u4e01\u5be7\u306b\u8aac\u660e<\/strong><\/span>\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>CakePHP\u3067\u8a8d\u8a3c\u51e6\u7406\u3092\u884c\u3046\u306b\u306f\u3001<span style=\"color: #339966\"><strong>Auth<\/strong><\/span>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002\u305d\u3053\u3067\u6700\u521d\u306b<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u30fbAuth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8a8d\u8a3c\u3068\u8a8d\u53ef<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fbAuth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f7f\u3044\u65b9<\/strong><\/span><\/p>\n<p>\u3067Auth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u57fa\u672c\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u30fb\u8a8d\u53ef\u306b\u3064\u3044\u3066<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u8a2d\u5b9a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066<\/strong><\/span><\/p>\n<p>\u3067\u3001\u3055\u3089\u306b\u8a73\u7d30\u306a\u8a2d\u5b9a\u3092\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>Auth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8a8d\u8a3c\u3068\u8a8d\u53ef<\/h2>\n<p>CakePHP\u306b\u306f\u3001<span style=\"color: #339966\"><strong>Auth<\/strong><\/span>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3044\u3046\u3001\u8a8d\u8a3c\u51e6\u7406\u306b\u5fc5\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u5229\u7528\u3059\u308c\u3070\u3001<span style=\"color: #0000ff\"><strong>\u7c21\u5358\u306b\u8a8d\u8a3c\u3092\u5fc5\u8981\u3068\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059<\/strong><\/span>\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u3082\u3068\u306b\u3057\u306a\u304c\u3089\u3001\u305d\u306e\u4ed5\u7d44\u307f\u3068\u4f7f\u3044\u65b9\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001composer\u3092\u5229\u7528\u3057\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306b\u7ba1\u7406\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u308a\u307e\u3057\u3087\u3046\u3002MySQL\u3067\u4ee5\u4e0b\u306e\u51e6\u7406\u3092\u884c\u3063\u3066<span style=\"color: #339966\"><strong>users<\/strong><\/span>\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"decode:true \">CREATE TABLE users (\r\n    id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,\r\n    username VARCHAR(50),\r\n    password VARCHAR(255),\r\n    role VARCHAR(20),\r\n    created DATETIME DEFAULT NULL,\r\n    modified DATETIME DEFAULT NULL\r\n);<\/pre>\n<p>\u3053\u308c\u304c\u51fa\u6765\u305f\u3089\u3001config\/app.php\u3092\u5909\u66f4\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u8a2d\u5b9a\u3059\u308b\u7b87\u6240\u306f\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"decode:true \">    'Datasources' =&gt; [\r\n        'default' =&gt; [\r\n            \u2026\uff08\u4e2d\u7565\uff09\u2026            \r\n            \/\/'port' =&gt; 'non_standard_port_number',\r\n            'username' =&gt; 'root',\r\n            'password' =&gt; '',\r\n            'database' =&gt; 'test',\r\n            'encoding' =&gt; 'utf8',\r\n            'timezone' =&gt; 'UTC',\r\n            'flags' =&gt; [],\r\n            'cacheMetadata' =&gt; true,\r\n            'log' =&gt; true,<\/pre>\n<p><span style=\"color: #339966\"><strong>username<\/strong><\/span>\u304a\u3088\u3073<span style=\"color: #339966\"><strong>password<\/strong><\/span>\u306f\u3001MySQL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u304a\u3088\u3073\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p><span style=\"color: #339966\"><strong>database<\/strong><\/span>\u306f\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3092\u3001\u81ea\u5206\u304c\u958b\u767a\u3059\u308b\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305f\u3001CakePHP\u3067\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/29200\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-32-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011SQL\uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff09\u306e\u57fa\u672c\u3092\u7406\u89e3\u3057\u3088\u3046\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<p>\u3053\u3061\u3089\u3082\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e<span style=\"color: #339966\"><strong>users<\/strong><\/span>\u30c6\u30fc\u30d6\u30eb\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u304a\u3088\u3073\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u3092\u542b\u3080\u30c6\u30fc\u30d6\u30eb\u3067\u3059\u3002\u3053\u308c\u3092\u5143\u306b\u3057\u3066\u3001<span style=\"color: #339966\"><strong>bake<\/strong><\/span>\u3092\u7528\u3044\u3066\u5fc5\u8981\u306a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4e00\u6c17\u306b\u751f\u6210\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">cake bake All Users<\/pre>\n<p>\u306a\u304a\u3001\u4ee5\u4e0a\u306e\u4e00\u9023\u306e\u6d41\u308c\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/26423\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image2-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010CakePHP\u5165\u9580\u3011bake\u306e\u4f7f\u3044\u65b9<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u3053\u308c\u3067\u3001<span style=\"color: #0000ff\"><strong>Users\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u7528\u3044\u3066\u8a8d\u8a3c\u3092\u884c\u3046<\/strong><\/span>\u4ed5\u7d44\u307f\u306e\u571f\u53f0\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001<span style=\"color: #339966\"><strong>AppController.php<\/strong><\/span>\u3092\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\/src\/Controller\/AppController.php<\/p>\n<pre class=\"lang:php decode:true \" >&lt;?php\r\n\/**\r\n * CakePHP(tm) : Rapid Development Framework (https:\/\/cakephp.org)\r\n * Copyright (c) Cake Software Foundation, Inc. (https:\/\/cakefoundation.org)\r\n *\r\n * Licensed under The MIT License\r\n * For full copyright and license information, please see the LICENSE.txt\r\n * Redistributions of files must retain the above copyright notice.\r\n *\r\n * @copyright Copyright (c) Cake Software Foundation, Inc. (https:\/\/cakefoundation.org)\r\n * @link      https:\/\/cakephp.org CakePHP(tm) Project\r\n * @since     0.2.9\r\n * @license   https:\/\/opensource.org\/licenses\/mit-license.php MIT License\r\n *\/\r\nnamespace App\\Controller;\r\n\r\nuse Cake\\Controller\\Controller;\r\nuse Cake\\Event\\Event;\r\n\r\n\/**\r\n * Application Controller\r\n *\r\n * Add your application-wide methods in the class below, your controllers\r\n * will inherit them.\r\n *\r\n * @link https:\/\/book.cakephp.org\/3.0\/en\/controllers.html#the-app-controller\r\n *\/\r\nclass AppController extends Controller\r\n{\r\n\r\n    \/**\r\n     * Initialization hook method.\r\n     *\r\n     * Use this method to add common initialization code like loading components.\r\n     *\r\n     * e.g. `$this-&gt;loadComponent('Security');`\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function initialize()\r\n    {\r\n        parent::initialize();\r\n\r\n        $this-&gt;loadComponent('RequestHandler', [\r\n            'enableBeforeRedirect' =&gt; false,\r\n        ]);\r\n        $this-&gt;loadComponent('Flash');\r\n\r\n        $this-&gt;loadComponent('Auth', [\r\n            'loginRedirect' =&gt; [\r\n                'controller' =&gt; 'Users',\r\n                'action' =&gt; 'index'\r\n            ],\r\n            'logoutRedirect' =&gt; [\r\n                'controller' =&gt; 'Users',\r\n                'action' =&gt; 'login'\r\n            ],\r\n            'authenticate' =&gt; [\r\n                'Form' =&gt; [\r\n                  'userModel' =&gt; 'Users',\r\n                  'fields' =&gt; [\r\n                    'username' =&gt; 'username',\r\n                    'password' =&gt; 'password'\r\n                  ]\r\n                ]\r\n            ],\r\n        ]);\r\n\r\n        $this-&gt;Auth-&gt;allow(['login','add']);\r\n\r\n\r\n        \/*\r\n         * Enable the following component for recommended CakePHP security settings.\r\n         * see https:\/\/book.cakephp.org\/3.0\/en\/controllers\/components\/security.html\r\n         *\/\r\n        \/\/$this-&gt;loadComponent('Security');\r\n    }\r\n}\r\n<\/pre>\n<h2>Auth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>\u3059\u3067\u306b\u8aac\u660e\u3057\u305f\u3068\u304a\u308a\u3001\u8a8d\u8a3c\u3092\u884c\u3046\u306e\u304c\u3001<span style=\"color: #339966\"><strong>Auth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p><span style=\"color: #339966\"><strong>AppController.php<\/strong><\/span>\u306e<span style=\"color: #339966\"><strong>initialize<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u305d\u306e\u8a2d\u5b9a\u304a\u3088\u3073\u51e6\u7406\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u30fb\u30ed\u30b0\u30a2\u30a6\u30c8\u6642\u306e\u30da\u30fc\u30b8\u9077\u79fb\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #339966\"><strong>loginRedirect<\/strong><\/span>\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u5f8c\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u884c\u3046\u30da\u30fc\u30b8\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001<span style=\"color: #339966\"><strong>index<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u304b\u3089\u3001\u30ed\u30b0\u30a4\u30f3\u5f8c\u306b<span style=\"color: #339966\"><strong>Users<\/strong><\/span>\u306eindex\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304c\u884c\u308f\u308c\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p><span style=\"color: #339966\"><strong>logoutRedirect<\/strong><\/span>\u306b\u3064\u3044\u3066\u3082\u540c\u69d8\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u904b\u7528\u3059\u308b\u3068\u304d\u306b\u306f<span style=\"color: #339966\"><strong>controller<\/strong><\/span>\u304a\u3088\u3073\u3001<span style=\"color: #339966\"><strong>action<\/strong><\/span>\u306e\u90e8\u5206\u3092\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u8a8d\u8a3c\u30cf\u30f3\u30c9\u30e9\u30fc\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066<\/h3>\n<p>\u6b21\u306b\u3001\u8a8d\u8a3c\u3092\u3057\u305f\u969b\u306b\u5229\u7528\u3067\u304d\u308b\u30da\u30fc\u30b8\u3068\u3001\u305d\u3046\u3067\u306a\u3044\u30da\u30fc\u30b8\u306e\u533a\u5225\u3092\u3064\u3051\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">$this-&gt;Auth-&gt;allow(['login','add']);<\/pre>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u884c\u3046\u51e6\u7406\u306f\u3001\u3053\u306e\u5834\u5408\u306f\u8a8d\u8a3c\u51e6\u7406\u306e\u4f8b\u5916\u306b\u306a\u308b\u30da\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001<span style=\"color: #339966\"><strong>login<\/strong><\/span>\u3068\u3001<span style=\"color: #339966\"><strong>add<\/strong><\/span>\u306b\u95a2\u3057\u3066\u306f\u3001<span style=\"color: #ff0000\"><strong>\u30ed\u30b0\u30a4\u30f3\u3092\u3057\u306a\u304f\u3066\u3082\u547c\u3073\u51fa\u305b\u308b<\/strong><\/span>\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5f53\u305f\u308a\u524d\u306e\u3053\u3068\u3067\u3059\u304c\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u4f7f\u3048\u306a\u3051\u308c\u3070\u3001\u30ed\u30b0\u30a4\u30f3\u51e6\u7406\u304c\u51fa\u6765\u307e\u305b\u3093\u304b\u3089\u3053\u3053\u306f\u9664\u5916\u3057\u307e\u3059\u3002<\/p>\n<p>\u540c\u69d8\u306b\u3001\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u753b\u9762\u3092<span style=\"color: #339966\"><strong>add<\/strong><\/span>\u3068\u3057\u3066\u3001\u3053\u308c\u3092\u9664\u5916\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30e6\u30fc\u30b6\u30fc\u306e\u8b58\u5225\u3068\u30ed\u30b0\u30a4\u30f3\u306b\u3064\u3044\u3066<\/h3>\n<p>\u3053\u3053\u304b\u3089\u5177\u4f53\u7684\u306b\u8a8d\u8a3c\u30cf\u30f3\u30c9\u30e9\u30fc\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u8a8d\u8a3c\u30cf\u30f3\u30c9\u30e9\u30fc\u306f\u3001<span style=\"color: #339966\"><strong>authenticate<\/strong><\/span>\u3068\u3044\u3046\u540d\u524d\u3067\u3001\u3053\u3053\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"decode:true \">            'authenticate' =&gt; [\r\n                'Form' =&gt; [\r\n                  'userModel' =&gt; 'Users',\r\n                  'fields' =&gt; [\r\n                    'username' =&gt; 'username',\r\n                    'password' =&gt; 'password'\r\n                  ]\r\n                ]\r\n            ]\r\n<\/pre>\n<p><span style=\"color: #339966\"><strong>Form<\/strong><\/span>\u306e\u90e8\u5206\u306f<span style=\"color: #339966\"><strong>Basic<\/strong><\/span>\u304a\u3088\u3073\u3001<span style=\"color: #339966\"><strong>Digest<\/strong><\/span>\u3068\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fForm\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3092\u5909\u66f4\u3059\u308c\u3070<span style=\"color: #0000ff\"><strong>Basic\u8a8d\u8a3c<\/strong><\/span>\u3001<span style=\"color: #0000ff\"><strong>\u30c0\u30a4\u30b8\u30a7\u30b9\u30c8\u8a8d\u8a3c<\/strong><\/span>\u306e\u533a\u5225\u3092\u6307\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\uff12\u3064\u306e\u8a8d\u8a3c\u65b9\u6cd5\u306b\u306f\u3001\u305d\u308c\u305e\u308c\u4e00\u9577\u4e00\u77ed\u304c\u3042\u308a\u307e\u3059\u3002\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u3057\u3066\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span style=\"color: #0000ff\"><strong>Basic\u8a8d\u8a3c\uff08\u57fa\u672c\u8a8d\u8a3c\uff09\u3068Digest\u8a8d\u8a3c\u3001\u305d\u308c\u305e\u308c\u306e\u5f79\u5272\u3068\u9055\u3044\u306b\u3064\u3044\u3066<\/strong><\/span><\/p>\n<p><a href=\"https:\/\/madalinazaharia.com\/column\/basic-authentication-and-digest-authentication\/\" target=\"_blank\" rel=\"noopener\">https:\/\/madalinazaharia.com\/column\/basic-authentication-and-digest-authentication\/<\/a><\/p>\n<p><span style=\"color: #339966\"><strong>fields<\/strong><\/span>\u3067\u3001\u30ab\u30e9\u30e0\u306e\u5c5e\u6027\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u540d\u3092username\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092password\u3068\u3044\u3046\u30ab\u30e9\u30e0\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ad\u30fc\u306e\u90e8\u5206\u304c\u5c5e\u6027\u3001<span style=\"color: #0000ff\"><strong>\u5024\u306e\u90e8\u5206\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30ab\u30e9\u30e0\u540d<\/strong><\/span>\u3092\u6307\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u4e21\u65b9\u304c\u4e00\u81f4\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u306e\u5024\u3092\u5909\u3048\u308b\u3068\u304d\u306f\u3001\u30ad\u30fc\u306e\u90e8\u5206\u3092\u5909\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u90e8\u5206\u306f\u3001bake\u3092\u4f7f\u7528\u3057\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3068\u7701\u7565\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u5224\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u3042\u3048\u3066\u8a18\u8ff0\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u6210\u306b\u3064\u3044\u3066<\/h3>\n<p>\u6b21\u306b\u3001\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u3092\u5177\u4f53\u7684\u306b\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f<span style=\"color: #339966\"><strong>UserController.php<\/strong><\/span>\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002\u3053\u3053\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\/src\/Controller\/UserController.php<\/p>\n<pre class=\"lang:php decode:true \" >&lt;?php\r\nnamespace App\\Controller;\r\n\r\nuse App\\Controller\\AppController;\r\n\r\n\/**\r\n * Users Controller\r\n *\r\n * @property \\App\\Model\\Table\\UsersTable $Users\r\n *\r\n * @method \\App\\Model\\Entity\\User[]|\\Cake\\Datasource\\ResultSetInterface paginate($object = null, array $settings = [])\r\n *\/\r\nclass UsersController extends AppController\r\n{\r\n    \/**\r\n     * Index method\r\n     *\r\n     * @return \\Cake\\Http\\Response|void\r\n     *\/\r\n    public function index()\r\n    {\r\n        $users = $this-&gt;paginate($this-&gt;Users);\r\n\r\n        $this-&gt;set(compact('users'));\r\n    }\r\n\r\n    \/**\r\n     * View method\r\n     *\r\n     * @param string|null $id User id.\r\n     * @return \\Cake\\Http\\Response|void\r\n     * @throws \\Cake\\Datasource\\Exception\\RecordNotFoundException When record not found.\r\n     *\/\r\n    public function view($id = null)\r\n    {\r\n        $user = $this-&gt;Users-&gt;get($id, [\r\n            'contain' =&gt; []\r\n        ]);\r\n\r\n        $this-&gt;set('user', $user);\r\n    }\r\n\r\n    \/**\r\n     * Add method\r\n     *\r\n     * @return \\Cake\\Http\\Response|null Redirects on successful add, renders view otherwise.\r\n     *\/\r\n    public function add()\r\n    {\r\n        $user = $this-&gt;Users-&gt;newEntity();\r\n        if ($this-&gt;request-&gt;is('post')) {\r\n            $user = $this-&gt;Users-&gt;patchEntity($user, $this-&gt;request-&gt;getData());\r\n            if ($this-&gt;Users-&gt;save($user)) {\r\n                $this-&gt;Flash-&gt;success(__('The user has been saved.'));\r\n\r\n                return $this-&gt;redirect(['action' =&gt; 'index']);\r\n            }\r\n            $this-&gt;Flash-&gt;error(__('The user could not be saved. Please, try again.'));\r\n        }\r\n        $this-&gt;set(compact('user'));\r\n    }\r\n\r\n    \/**\r\n     * Edit method\r\n     *\r\n     * @param string|null $id User id.\r\n     * @return \\Cake\\Http\\Response|null Redirects on successful edit, renders view otherwise.\r\n     * @throws \\Cake\\Datasource\\Exception\\RecordNotFoundException When record not found.\r\n     *\/\r\n    public function edit($id = null)\r\n    {\r\n        $user = $this-&gt;Users-&gt;get($id, [\r\n            'contain' =&gt; []\r\n        ]);\r\n        if ($this-&gt;request-&gt;is(['patch', 'post', 'put'])) {\r\n            $user = $this-&gt;Users-&gt;patchEntity($user, $this-&gt;request-&gt;getData());\r\n            if ($this-&gt;Users-&gt;save($user)) {\r\n                $this-&gt;Flash-&gt;success(__('The user has been saved.'));\r\n\r\n                return $this-&gt;redirect(['action' =&gt; 'index']);\r\n            }\r\n            $this-&gt;Flash-&gt;error(__('The user could not be saved. Please, try again.'));\r\n        }\r\n        $this-&gt;set(compact('user'));\r\n    }\r\n\r\n    \/**\r\n     * Delete method\r\n     *\r\n     * @param string|null $id User id.\r\n     * @return \\Cake\\Http\\Response|null Redirects to index.\r\n     * @throws \\Cake\\Datasource\\Exception\\RecordNotFoundException When record not found.\r\n     *\/\r\n    public function delete($id = null)\r\n    {\r\n        $this-&gt;request-&gt;allowMethod(['post', 'delete']);\r\n        $user = $this-&gt;Users-&gt;get($id);\r\n        if ($this-&gt;Users-&gt;delete($user)) {\r\n            $this-&gt;Flash-&gt;success(__('The user has been deleted.'));\r\n        } else {\r\n            $this-&gt;Flash-&gt;error(__('The user could not be deleted. Please, try again.'));\r\n        }\r\n\r\n        return $this-&gt;redirect(['action' =&gt; 'index']);\r\n    }\r\n\r\n    #\u4ee5\u4e0b\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\r\n\r\n    public function login()\r\n    {\r\n        if ($this-&gt;request-&gt;is('post')) {\r\n            $user = $this-&gt;Auth-&gt;identify();\r\n            if ($user) {\r\n                $this-&gt;Auth-&gt;setUser($user);\r\n                return $this-&gt;redirect($this-&gt;Auth-&gt;redirectUrl());\r\n            }\r\n            $this-&gt;Flash-&gt;error(__('Invalid username or password, try again'));\r\n        }\r\n    }\r\n    public function logout()\r\n    {\r\n        return $this-&gt;redirect($this-&gt;Auth-&gt;logout());\r\n    }\r\n}\r\n<\/pre>\n<p>\u3053\u3053\u306b\u306f\u3001index,view,add,login\u306e\u5404\u30da\u30fc\u30b8\u306e\u51e6\u7406\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>login\u30da\u30fc\u30b8\u3067\u306f\u3001\u8a8d\u8a3c\u753b\u9762\u3067\u884c\u308f\u308c\u305f\u8a8d\u8a3c\u51e6\u7406\u304c\u6210\u529f\u3059\u308c\u3070\u3001index\u30da\u30fc\u30b8\u3078\u3001\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>add\u30da\u30fc\u30b8\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u3092\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3042\u305f\u308a\u306f\u3001\u307b\u307c\u6c7a\u307e\u308a\u6587\u53e5\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u6d41\u7528\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u5316\u306b\u3064\u3044\u3066<\/h3>\n<p>\u3068\u3053\u308d\u3067\u3001\u901a\u5e38\u3001\u3053\u306e\u3088\u3046\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u308b\u5834\u5408\u3001<span style=\"color: #ff0000\"><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30cf\u30c3\u30b7\u30e5\u5316\u3092\u65bd\u3057\u3066\u96a0\u853d\u3059\u308b<\/strong><\/span>\u306e\u304c\u5e38\u8b58\u3067\u3059\u3002<\/p>\n<p>\u30cf\u30c3\u30b7\u30e5\u5316\u3068\u3044\u3046\u306e\u306f\u3001<span style=\"color: #0000ff\"><strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u3088\u3046\u306a\u5927\u4e8b\u306a\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u3001\u7279\u6b8a\u306a\u65b9\u6cd5\u3067\u5224\u8aad\u3067\u304d\u306a\u304f\u3059\u308b<\/strong><\/span>\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u30cf\u30c3\u30ad\u30f3\u30b0\u306b\u3088\u308b\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u8a2d\u5b9a\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u306b\u95a2\u3059\u308b\u51e6\u7406\u306b\u8a18\u8ff0\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30fc\u30d6\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u306f\u3001\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305a\u306f\u3001Entity\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>src\/Model\/Entity\/User.php<\/p>\n<pre class=\"decode:true \">&lt;?php\r\nnamespace App\\Model\\Entity;\r\n\r\nuse Cake\\ORM\\Entity;\r\nuse Cake\\Auth\\DefaultPasswordHasher;\r\n\r\nclass User extends Entity\r\n{\r\n    protected $_accessible = [\r\n        '*' =&gt; true,\r\n        'id' =&gt; false\r\n    ];\r\n    protected $_hidden = [\r\n        'password'\r\n    ];\r\n\r\n    protected function _setPassword($password)\r\n    {\r\n        if (strlen($password) &gt; 0) {\r\n            return (new DefaultPasswordHasher)-&gt;hash($password);\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u306a\u304a\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u3001Users\u3067\u306f\u306a\u304f<span style=\"color: #ff0000\"><strong>User<\/strong><\/span>\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u3053\u3067\u6ce8\u76ee\u3057\u3066\u6b32\u3057\u3044\u306e\u304c\u3001<span style=\"color: #339966\"><strong>_setPassword<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u3053\u308c\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30bb\u30c3\u30c8\u3092\u884c\u3046\u3068\u304d\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u306a\u306e\u3067\u3059\u304c\u3001<span style=\"color: #339966\"><strong>DefaultPasswordHasher<\/strong><\/span>\u30af\u30e9\u30b9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001Entity\u3067<span style=\"color: #0000ff\"><strong>_set\u25cb\u25cb<\/strong><\/span>\u3068\u3044\u3046protected\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3076\u3053\u3068\u3067\u3001\u25cb\u25cb\u3068\u3044\u3046\u30ab\u30e9\u30e0\u3092<span style=\"color: #0000ff\"><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3059\u308b\u76f4\u524d\u306b\u3001\u5024\u3092\u7de8\u96c6\u3092\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b<\/strong><\/span>\u306e\u3067\u3059\u3002<\/p>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u306f\u3001\u30ab\u30e9\u30e0\u540d\u306e\u524d\u306b\u300c_\u300d\u8a18\u53f7\u3092\u4ed8\u3051\u307e\u3059\u3002\u3053\u3053\u306b\u4fdd\u5b58\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u305f\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u304b\u3089\u3001\u3053\u306e\u5834\u5408\u306f\u3001password\u306a\u306e\u3067\u3001<span style=\"color: #339966\"><strong>_password<\/strong><\/span>\u3068\u306a\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30cf\u30c3\u30b7\u30e5\u3067\u4f7f\u3046salt\u306fapp.php\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">'Security' =&gt; [\r\n        'salt' =&gt; env('SECURITY_SALT', 'a3af2c5df7e1781db8a3e3c4cdac1bfca595539f83662f3ade304c6148d5795f'),\r\n],<\/pre>\n<p>salt\u306e\u5909\u66f4\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u3053\u3053\u3092\u5909\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306b\u3001UsersTable.php\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u3061\u3089\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>src\/Model\/Table\/UserTable.php<\/p>\n<pre class=\"decode:true \">&lt;?php\r\nnamespace App\\Model\\Table;\r\n\r\nuse Cake\\ORM\\Query;\r\nuse Cake\\ORM\\RulesChecker;\r\nuse Cake\\ORM\\Table;\r\nuse Cake\\Validation\\Validator;\r\n\r\nclass UsersTable extends Table\r\n{\r\n    public function initialize(array $config)\r\n    {\r\n        parent::initialize($config);\r\n\r\n        $this-&gt;setTable('users');\r\n        $this-&gt;setDisplayField('id');\r\n        $this-&gt;setPrimaryKey('id');\r\n\r\n        $this-&gt;addBehavior('Timestamp');\r\n    }\r\n    public function validationDefault(Validator $validator)\r\n    {\r\n        return $validator\r\n            -&gt;notEmpty('username', 'A username is required')\r\n            -&gt;notEmpty('password', 'A password is required')\r\n            -&gt;notEmpty('role', 'A role is required')\r\n            -&gt;add('role', 'inList', [\r\n                'rule' =&gt; ['inList', ['admin', 'author']],\r\n                'message' =&gt; 'Please enter a valid role'\r\n            ]);\r\n    }\r\n    public function buildRules(RulesChecker $rules)\r\n    {\r\n        $rules-&gt;add($rules-&gt;isUnique(['username']));\r\n\r\n        return $rules;\r\n    }\r\n}<\/pre>\n<h3>\u624b\u52d5\u3067\u306e\u30e6\u30fc\u30b6\u30fc\u30ed\u30b0\u30a4\u30f3\u306b\u3064\u3044\u3066<\/h3>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b.ctp\u30d5\u30a1\u30a4\u30eb\u3092\u5168\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\/src\/Template\/Users\/login.ctp<\/p>\n<pre class=\"decode:true \">&lt;div class=\"users form large-9 medium-8 columns content\"&gt;\r\n    &lt;?= $this-&gt;Flash-&gt;render() ?&gt;\r\n    &lt;?= $this-&gt;Form-&gt;create() ?&gt;\r\n    &lt;fieldset&gt;\r\n        &lt;legend&gt;&lt;?= __('Please enter your username and password') ?&gt;&lt;\/legend&gt;\r\n        &lt;?= $this-&gt;Form-&gt;control('username') ?&gt;\r\n        &lt;?= $this-&gt;Form-&gt;control('password') ?&gt;\r\n    &lt;\/fieldset&gt;\r\n    &lt;?= $this-&gt;Form-&gt;button(__('Submit')) ?&gt;\r\n    &lt;?= $this-&gt;Form-&gt;end() ?&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\/src\/Template\/Users\/add.ctp<\/p>\n<pre class=\"decode:true \">&lt;div class=\"users form large-9 medium-8 columns content\"&gt;\r\n    &lt;?= $this-&gt;Form-&gt;create($user) ?&gt;\r\n    &lt;fieldset&gt;\r\n        &lt;legend&gt;&lt;?= __('Add User') ?&gt;&lt;\/legend&gt;\r\n        &lt;?= $this-&gt;Form-&gt;control('username') ?&gt;\r\n        &lt;?= $this-&gt;Form-&gt;control('password') ?&gt;\r\n        &lt;?= $this-&gt;Form-&gt;control('role', [\r\n            'options' =&gt; ['admin' =&gt; 'Admin', 'author' =&gt; 'Author']\r\n        ]) ?&gt;\r\n   &lt;\/fieldset&gt;\r\n    &lt;?= $this-&gt;Html-&gt;link(__('Login'), ['action' =&gt; 'login']) ?&gt;\r\n    &lt;?= $this-&gt;Form-&gt;button(__('Submit')) ?&gt;\r\n    &lt;?= $this-&gt;Form-&gt;end() ?&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\/src\/Template\/Users\/index.ctp<\/p>\n<pre class=\"decode:true \">&lt;nav class=\"large-3 medium-4 columns\" id=\"actions-sidebar\"&gt;\r\n    &lt;ul class=\"side-nav\"&gt;\r\n        &lt;li class=\"heading\"&gt;&lt;?= __('Actions') ?&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;?= $this-&gt;Html-&gt;link(__('Logout'), ['action' =&gt; 'logout']) ?&gt;&lt;\/li&gt;\r\n    &lt;\/ul&gt;\r\n&lt;\/nav&gt;\r\n&lt;div class=\"users index large-9 medium-8 columns content\"&gt;\r\n    &lt;h3&gt;&lt;?= __('Users') ?&gt;&lt;\/h3&gt;\r\n    &lt;table cellpadding=\"0\" cellspacing=\"0\"&gt;\r\n        &lt;thead&gt;\r\n            &lt;tr&gt;\r\n                &lt;th scope=\"col\"&gt;&lt;?= $this-&gt;Paginator-&gt;sort('id') ?&gt;&lt;\/th&gt;\r\n                &lt;th scope=\"col\"&gt;&lt;?= $this-&gt;Paginator-&gt;sort('username') ?&gt;&lt;\/th&gt;\r\n                &lt;th scope=\"col\"&gt;&lt;?= $this-&gt;Paginator-&gt;sort('password') ?&gt;&lt;\/th&gt;\r\n                &lt;th scope=\"col\"&gt;&lt;?= $this-&gt;Paginator-&gt;sort('role') ?&gt;&lt;\/th&gt;\r\n                &lt;th scope=\"col\"&gt;&lt;?= $this-&gt;Paginator-&gt;sort('created') ?&gt;&lt;\/th&gt;\r\n                &lt;th scope=\"col\"&gt;&lt;?= $this-&gt;Paginator-&gt;sort('modified') ?&gt;&lt;\/th&gt;\r\n                &lt;th scope=\"col\" class=\"actions\"&gt;&lt;?= __('Actions') ?&gt;&lt;\/th&gt;\r\n            &lt;\/tr&gt;\r\n        &lt;\/thead&gt;\r\n        &lt;tbody&gt;\r\n            &lt;?php foreach ($users as $user): ?&gt;\r\n            &lt;tr&gt;\r\n                &lt;td&gt;&lt;?= $this-&gt;Number-&gt;format($user-&gt;id) ?&gt;&lt;\/td&gt;\r\n                &lt;td&gt;&lt;?= h($user-&gt;username) ?&gt;&lt;\/td&gt;\r\n                &lt;td&gt;&lt;?= h($user-&gt;password) ?&gt;&lt;\/td&gt;\r\n                &lt;td&gt;&lt;?= h($user-&gt;role) ?&gt;&lt;\/td&gt;\r\n                &lt;td&gt;&lt;?= h($user-&gt;created) ?&gt;&lt;\/td&gt;\r\n                &lt;td&gt;&lt;?= h($user-&gt;modified) ?&gt;&lt;\/td&gt;\r\n                &lt;td class=\"actions\"&gt;\r\n                    &lt;?= $this-&gt;Html-&gt;link(__('View'), ['action' =&gt; 'view', $user-&gt;id]) ?&gt;\r\n                &lt;\/td&gt;\r\n            &lt;\/tr&gt;\r\n            &lt;?php endforeach; ?&gt;\r\n        &lt;\/tbody&gt;\r\n    &lt;\/table&gt;\r\n    &lt;div class=\"paginator\"&gt;\r\n        &lt;ul class=\"pagination\"&gt;\r\n            &lt;?= $this-&gt;Paginator-&gt;first('&lt;&lt; ' . __('first')) ?&gt;\r\n            &lt;?= $this-&gt;Paginator-&gt;prev('&lt; ' . __('previous')) ?&gt;\r\n            &lt;?= $this-&gt;Paginator-&gt;numbers() ?&gt;\r\n            &lt;?= $this-&gt;Paginator-&gt;next(__('next') . ' &gt;') ?&gt;\r\n            &lt;?= $this-&gt;Paginator-&gt;last(__('last') . ' &gt;&gt;') ?&gt;\r\n        &lt;\/ul&gt;\r\n        &lt;p&gt;&lt;?= $this-&gt;Paginator-&gt;counter(['format' =&gt; __('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')]) ?&gt;&lt;\/p&gt;\r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\/src\/Template\/Users\/view.ctp<\/p>\n<pre class=\"decode:true \">&lt;nav class=\"large-3 medium-4 columns\" id=\"actions-sidebar\"&gt;\r\n    &lt;ul class=\"side-nav\"&gt;\r\n        &lt;li class=\"heading\"&gt;&lt;?= __('Actions') ?&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;?= $this-&gt;Html-&gt;link(__('List Users'), ['action' =&gt; 'index']) ?&gt; &lt;\/li&gt;\r\n        &lt;li&gt;&lt;?= $this-&gt;Html-&gt;link(__('Logout'), ['action' =&gt; 'logout']) ?&gt;&lt;\/li&gt;\r\n    &lt;\/ul&gt;\r\n&lt;\/nav&gt;\r\n&lt;div class=\"users view large-9 medium-8 columns content\"&gt;\r\n    &lt;h3&gt;&lt;?= h($user-&gt;id) ?&gt;&lt;\/h3&gt;\r\n    &lt;table class=\"vertical-table\"&gt;\r\n        &lt;tr&gt;\r\n            &lt;th scope=\"row\"&gt;&lt;?= __('Username') ?&gt;&lt;\/th&gt;\r\n            &lt;td&gt;&lt;?= h($user-&gt;username) ?&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n            &lt;th scope=\"row\"&gt;&lt;?= __('Role') ?&gt;&lt;\/th&gt;\r\n            &lt;td&gt;&lt;?= h($user-&gt;role) ?&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n            &lt;th scope=\"row\"&gt;&lt;?= __('Id') ?&gt;&lt;\/th&gt;\r\n            &lt;td&gt;&lt;?= $this-&gt;Number-&gt;format($user-&gt;id) ?&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n            &lt;th scope=\"row\"&gt;&lt;?= __('Created') ?&gt;&lt;\/th&gt;\r\n            &lt;td&gt;&lt;?= h($user-&gt;created) ?&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr&gt;\r\n            &lt;th scope=\"row\"&gt;&lt;?= __('Modified') ?&gt;&lt;\/th&gt;\r\n            &lt;td&gt;&lt;?= h($user-&gt;modified) ?&gt;&lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n    &lt;\/table&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\u4ee5\u4e0a\u3067\u5fc5\u8981\u306a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u5168\u3066\u51fa\u63c3\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u4e00\u756a\u6700\u521d\u306b\u3001add\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3067login\u306b\u79fb\u52d5\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u308c\u3066\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001index\u306b\u98db\u3073\u307e\u3059\u3002<\/p>\n<p>XAMPP\u3067\u884c\u3046\u5834\u5408\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u306f<\/p>\n<p><span style=\"color: #0000ff\"><strong>http:\/\/localhost\/[\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d]\/users\/add<\/strong><\/span><\/p>\n<p>\u3068\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u8ffd\u52a0\u753b\u9762\u304c\u3042\u3089\u308f\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30763\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff11-min.png\" alt=\"\u753b\u50cf\uff11-min\" width=\"700\" height=\"300\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff11-min.png 700w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff11-min-150x64.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff11-min-300x129.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff11-min-640x274.png 640w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u306f<\/p>\n<p><span style=\"color: #0000ff\"><strong>http:\/\/localhost\/[\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d]\/users\/login<\/strong><\/span><\/p>\n<p>\u3068\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30764\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff12-min.png\" alt=\"\u753b\u50cf\uff12-min\" width=\"700\" height=\"256\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff12-min.png 700w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff12-min-150x55.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff12-min-300x110.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf\uff12-min-640x234.png 640w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>\u306a\u304a\u3001\u8a8d\u8a3c\u3092\u884c\u3046\u524d\u306b<span style=\"color: #ff0000\"><strong>index\u304a\u3088\u3073\u3001view\u3092\u6307\u5b9a\u3057\u305f\u3068\u3057\u3066\u3082\u3001login\u306b\u623b\u3063\u3066\u3057\u307e\u3044\u307e\u3059<\/strong><\/span>\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001index\u753b\u9762\u306b\u79fb\u884c\u3057\u307e\u3059\u3002\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30765\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf3-min.png\" alt=\"\u753b\u50cf3-min\" width=\"700\" height=\"256\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf3-min.png 700w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf3-min-150x55.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf3-min-300x110.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u753b\u50cf3-min-640x234.png 640w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u540d\u306e\u6700\u5f8c\u306b\u3042\u308bView\u3092\u62bc\u3059\u3068\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u306e\u8a73\u7d30\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u8a8d\u53ef\u306b\u3064\u3044\u3066<\/h2>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u3042\u304f\u307e\u3067\u3082\u5358\u7d14\u306a\u30ed\u30b0\u30a4\u30f3\u30fb\u30ed\u30b0\u30a2\u30a6\u30c8\u304c\u3067\u304d\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3001admin\u304a\u3088\u3073\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u306a\u3069\u306e<span style=\"color: #0000ff\"><strong>\u6a29\u9650\u3092\u533a\u5225\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408<\/strong><\/span>\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306f\u3001<span style=\"color: #0000ff\"><strong>\u8a8d\u53ef\u30cf\u30f3\u30c9\u30e9\u30fc<\/strong><\/span>\u3092\u4f7f\u3046\u3068\u5927\u5909\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u8a8d\u53ef\u30cf\u30f3\u30c9\u30e9\u30fc\u306f <span style=\"color: #339966\"><strong>authorize<\/strong><\/span>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u5229\u7528\u3059\u308c\u3070\u3001<span style=\"color: #0000ff\"><strong>\u6a29\u9650\u306b\u3088\u308a\u898b\u3089\u308c\u308b\u30da\u30fc\u30b8\u3092\u5236\u9650\u3057\u305f\u308a\u3001\u51e6\u7406\u3092\u632f\u308a\u5206\u3051\u305f\u308a\u3059\u308b<\/strong><\/span>\u3053\u3068\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #339966\"><strong>AppController<\/strong><\/span>\u306e\u3001<span style=\"color: #339966\"><strong>initialize<\/strong><\/span>\u304a\u3088\u3073<span style=\"color: #339966\"><strong>beforeFilter<\/strong><\/span>\u3067\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span style=\"color: #0000ff\"><strong>CakePHP\u306e\u8a8d\u8a3c\u30fb\u8a8d\u53ef\u306b\u3064\u3044\u3066\u306e\u8aac\u660e<\/strong><\/span><\/p>\n<p><a href=\"https:\/\/book.cakephp.org\/3.0\/ja\/controllers\/components\/authentication.html#id24\" target=\"_blank\" rel=\"noopener\">https:\/\/book.cakephp.org\/3.0\/ja\/controllers\/components\/authentication.html#id24<\/a><\/p>\n<h2>\u8a2d\u5b9a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066<\/h2>\n<p>\u4ee5\u4e0a\u3067\u3001CakePHP\u306e\u8a8d\u8a3c\u306b\u95a2\u3059\u308b\u8aac\u660e\u306f\u7d42\u4e86\u3067\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001CakePHP\u306eAuth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8a2d\u5b9a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3001\u7c21\u5358\u306b\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #339966\"><strong>\u30fbajaxLogin<\/strong><\/span><br \/>\n\u671f\u9650\u5207\u308c\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u306a\u3069\u3092\u4f34\u3063\u305f\u51e6\u7406\u306e\u30aa\u30d7\u30b7\u30e7\u30f3<\/p>\n<p><span style=\"color: #339966\"><strong>\u30fballowedActions<\/strong><\/span><br \/>\n\u30e6\u30fc\u30b6\u30fc\u306e\u59a5\u5f53\u6027\u30c1\u30a7\u30c3\u30af\u304c\u5fc5\u8981\u306a\u3044\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u6307\u5b9a<\/p>\n<p><span style=\"color: #339966\"><strong>\u30fbauthenticate<\/strong><\/span><br \/>\n\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u306b\u4f7f\u3044\u305f\u3044\u8a8d\u8a3c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a<\/p>\n<p><span style=\"color: #339966\"><strong>\u30fbauthError<\/strong><\/span><br \/>\n\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u7121\u3044\u30a2\u30af\u30bb\u30b9\u3092\u3057\u305f\u5834\u5408\u306b\u8868\u793a\u3055\u308c\u308b\u30a8\u30e9\u30fc\u306e\u8a2d\u5b9a<\/p>\n<p><span style=\"color: #339966\"><strong>\u30fbauthorize<\/strong><\/span><br \/>\n\u5404\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u8a8d\u53ef\u306b\u4f7f\u3044\u305f\u3044\u8a8d\u53ef\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a<\/p>\n<p>\u3053\u308c\u3089\u3092\u4e0a\u624b\u306b\u6d3b\u7528\u3059\u308c\u3070\u3001\u8a8d\u8a3c\u3092\u4f34\u3046\u5b9f\u7528\u7684\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u304c\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001CakePHP\u3067\u8a8d\u8a3c\u3092\u884c\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff0000\"><strong>\u30fbAuth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8a8d\u8a3c\u3068\u8a8d\u53ef<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fbAuth\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f7f\u3044\u65b9<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u8a8d\u53ef\u306b\u3064\u3044\u3066<\/strong><\/span><br \/>\n<span style=\"color: #ff0000\"><strong>\u30fb\u8a2d\u5b9a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066<\/strong><\/span><\/p>\n<p>\u4ee5\u4e0a\u3092\u53c2\u8003\u306b\u3059\u308c\u3070<span style=\"color: #0000ff\"><strong>\u30d6\u30ed\u30b0\u306e\u3088\u3046\u306aCMS\u3084SNS\u30b5\u30a4\u30c8\u3001\u66f4\u306b\u306f\u5199\u771f\u6295\u7a3f\u30b5\u30a4\u30c8<\/strong><\/span>\u3092\u4f5c\u6210\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>PHP\u306e\u307f\u3067\u3053\u308c\u3089\u3092\u5b9f\u88c5\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u5927\u5909\u306a\u52b4\u529b\u3068\u6642\u9593\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001<span style=\"color: #ff0000;background-color: #ffff99\"><strong>CakePHP \u3092\u7528\u3044\u308c\u3070\u3001\u8ab0\u3067\u3082\u7c21\u5358\u306b\u5b9f\u73fe\u3067\u304d\u308b<\/strong><\/span>\u306e\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30e9\u30a4\u30bf\u30fc\u306e\u4e80\u7530\u3067\u3059\u3002 \u5b9f\u7528\u7684\u306aWeb\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u969b\u306b\u306f\u3001\u8a8d\u8a3c\u6a5f\u80fd\u306f\u6b20\u304b\u305b\u307e\u305b\u3093\u3002 \u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3ID\u304a\u3088\u3073\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3068\u3044\u3046\u6d41\u308c\u306f\u3001\u3069\u306e\u3088\u3046\u306aWeb\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3057\u3066\u3082\u5fc5\u305a\u898b\u53d7\u3051\u3089\u308c [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":30767,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2348],"tags":[663,15],"class_list":["post-30688","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-study","tag-auth","tag-cakephp"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/30688\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/30688\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-25T07:19:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:44:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-110.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2017-08-25T07:19:02+00:00\",\"dateModified\":\"2024-05-06T02:44:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688\"},\"wordCount\":192,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/image-110.jpg\",\"keywords\":[\"Auth\",\"CakePHP\"],\"articleSection\":[\"PHP\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688\",\"name\":\"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/image-110.jpg\",\"datePublished\":\"2017-08-25T07:19:02+00:00\",\"dateModified\":\"2024-05-06T02:44:41+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/image-110.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/image-110.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/30688#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/30688","og_locale":"ja_JP","og_type":"article","og_title":"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/30688","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"2017-08-25T07:19:02+00:00","article_modified_time":"2024-05-06T02:44:41+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-110.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/30688#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/30688"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5","datePublished":"2017-08-25T07:19:02+00:00","dateModified":"2024-05-06T02:44:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/30688"},"wordCount":192,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/30688#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-110.jpg","keywords":["Auth","CakePHP"],"articleSection":["PHP\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/30688","url":"https:\/\/www.sejuku.net\/blog\/30688","name":"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/30688#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/30688#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-110.jpg","datePublished":"2017-08-25T07:19:02+00:00","dateModified":"2024-05-06T02:44:41+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/30688#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/30688"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/30688#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-110.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-110.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/30688#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010CakePHP\u5165\u9580\u3011Auth\u3067\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/30688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=30688"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/30688\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/30767"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=30688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=30688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=30688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}