{"id":4232,"date":"2019-07-27T19:43:19","date_gmt":"2019-07-27T10:43:19","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=4232"},"modified":"2019-07-27T19:43:19","modified_gmt":"2019-07-27T10:43:19","slug":"laravel%e3%81%a7webauthn%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%ef%bc%92%e6%ae%b5%e9%9a%8e%e8%aa%8d%e8%a8%bc%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=4232","title":{"rendered":"Laravel\u3067WebAuthn\u3092\u4f7f\u3063\u305f\uff12\u6bb5\u968e\u8a8d\u8a3c\u3092\u5b9f\u88c5\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593<a href=\"https:\/\/blog.capilano-fw.com\/?p=4081\">\u3010Python\u3011Pasori RC-S380\u3067\u5165\u9000\u5ba4\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u308b<\/a>\u3068\u3044\u3046\u8a18\u4e8b\u306e\u4e2d\u3067\u3001\u975e\u63a5\u89e6\u578b\u30ab\u30fc\u30c9\u30ea\u30fc\u30c0\u30fc\u306e<code>Pasori<\/code>\u3092<code>amazon<\/code>\u3067\u30dd\u30c1\u3063\u3066\u3057\u307e\u3063\u305f\u3053\u3068\u3092\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u79c1\u306f\u305d\u308c\u307b\u3069\u885d\u52d5\u8cb7\u3044\u3059\u308b\u65b9\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u6b63\u76f4\u306a\u3068\u3053\u308d\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u305f\u3081\u306b\u65b0\u3057\u3044\u30ac\u30b8\u30a7\u30c3\u30c8\u3092\u8cb7\u3063\u3066\u8a66\u3057\u3066\u307f\u308b\u3068\u3044\u3046\u306e\u304c\u4e88\u60f3\u4ee5\u4e0a\u306b\u697d\u3057\u3044\u7d4c\u9a13\u3067\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u4eca\u56de\u306e\u8a18\u4e8b\u3082\u540c\u3058\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u696d\u52d9\u3067\u5fc5\u8981\u306a\u3082\u306e\u3092<code>amazon<\/code>\u3067\u8cfc\u5165\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3044\u308d\u3044\u308d\u898b\u3066\u3044\u308b\u3046\u3061\u306b\u3042\u308b\u5546\u54c1\u304c\u58f2\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u304c\u3001\u3053\u306e<strong>\u300cSecurity Key by Yubico\u300d<\/strong>\u3067\u3059\uff083,600\u5186\ud83d\ude05\uff09\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4240\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_1.png\" alt=\"\" width=\"640\" height=\"985\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_1.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_1-195x300.png 195w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u300c\u4e00\u4f53\u3053\u308c\u306f\u4f55\u306b\u4f7f\u3046\u306e\uff1f\uff1f\u300d\u3068\u601d\u308f\u308c\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u306f\u4eca\u5f8c\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u306e\u30e1\u30a4\u30f3\u306b\u306a\u308b\u3060\u308d\u3046\u3068\u8a00\u308f\u308c\u3066\u3044\u308b\u6280\u8853\u3001<strong>\u300cWebAuthn\u203b\u300d<\/strong>\u306e\u305f\u3081\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30fc\u3067\u3001\u3053\u308c\u304c\u3042\u308c\u3070<strong>\u8d85\u5f37\u529b\u306a\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u304c\u69cb\u7bc9\u3067\u304d\u308b<\/strong>\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u203b Youtube\u52d5\u753b\u3092\u898b\u308b\u9650\u308a\u8aad\u307f\u65b9\u306f\u300c\u3046\u3047\u3076\u304a\u30fc\u305b\u3093\u300d\u3068\u8a00\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u885d\u52d5\u8cb7\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7b2c\u4e8c\u6bb5\u3068\u3057\u3066<strong>\u300cWebAuthn\u300d<\/strong>\u3067\uff12\u6bb5\u968e\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3405 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png\" alt=\"\" width=\"310\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png 310w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18-291x300.png 291w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><\/p>\n<p>\u958b\u767a\u74b0\u5883\uff1a Laravel 5.8\u3001Vue 2.6\u3001Googhe Chrome 75\u3001nginx + php-fpm<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>Laravel\u306b<code>php artisan make:auth<\/code>\u3067\u57fa\u672c\u306e\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u6a5f\u80fd\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u3055\u3089\u306b\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u524d\u63d0\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u307e\u3060\u6e96\u5099\u3057\u3066\u3044\u306a\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u30da\u30fc\u30b8\u306e<strong>\u300c\u30ed\u30b0\u30a4\u30f3\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30de\u30a4\u30f3\u30c0\u30fc\u6a5f\u80fd\u3092\u69cb\u7bc9\u300d<\/strong>\u3092\u53c2\u8003\u306b\u3057\u3066\u4e8b\u524d\u306b\u4f5c\u696d\u3092\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/blog.capilano-fw.com\/?p=289\">\u3010Laravel5.6\u3011\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306b\u3084\u308b\u3053\u3068\uff13\u70b9<\/a><\/p>\n<p>\u307e\u305f\u3001<code>WebAuthn<\/code>\u306f\u30ed\u30fc\u30ab\u30eb\u3067\u3042\u3063\u3066\u3082<code>HTTPS<\/code>\u63a5\u7d9a\u304c\u5fc5\u9808\u3067\u3059\u3002\u3082\u3057<code>nginx<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3057\u305f\u3089\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/blog.capilano-fw.com\/?p=2228\">\u30b3\u30d4\u30da\u3067OK\uff01\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306bHTTPS\u3092\u5c0e\u5165\u3059\u308b\uff08nginx\u7de8\uff09<\/a><\/p>\n<h1>\u6e96\u5099<\/h1>\n<p>\u5b9f\u969b\u306b\u958b\u767a\u3092\u59cb\u3081\u308b\u524d\u306b\u5fc5\u8981\u306b\u306a\u308b\u6e96\u5099\u3092\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n<code>WebAuthn<\/code>\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u3001\u307e\u305a\u306f\u305d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u5fc5\u8981\u306aPHP\u306e\u62e1\u5f35\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>sudo apt install php7.2-gmp<\/strong><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\uff08<code>httpd<\/code>\u306e\u65b9\u306f<code>sudo systemctl restart httpd<\/code>\uff09<\/p>\n<pre><strong>sudo systemctl restart php7.2-fpm<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001<code>phpinfo()<\/code>\u3067\u78ba\u8a8d\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4242\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_6.png\" alt=\"\" width=\"964\" height=\"117\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_6.png 964w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_6-300x36.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_6-768x93.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u3067\u306f\u3001<code>WebAuthn<\/code>\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>composer require asbiin\/laravel-webauthn<\/strong><\/pre>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\uff08\u30b3\u30d4\u30fc\uff09\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan laravelwebauthn:publish<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u304c<code>Laravel<\/code>\u5074\u306b\u30b3\u30d4\u30fc\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067DB\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u203b \u3082\u3057<code>foreign key<\/code>\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3088\u3046\u3067\u3057\u305f\u3089\u3001\u9023\u643a\u3059\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u578b\u304c\u3061\u304c\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u539f\u56e0\u3067\u3059\u306e\u3067\u3001<code>database\/migrations\/2019_03_29_163611_add_webauthn.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>$table-&gt;unsignedInteger('user_id');<\/pre>\n<p>\u2193\u2193\u2193\u5909\u66f4<\/p>\n<pre>$table-&gt;<strong>unsignedBigInteger<\/strong>('user_id');<\/pre>\n<h1>Laravel\u5074\u306e\u4f5c\u696d<\/h1>\n<p>\u3067\u306f\u3053\u3053\u304b\u3089\u304c\u3001Laravel\u5185\u3067\u306e\u4f5c\u696d\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30fb\u30fb\u30fb\u3068\u8a00\u3063\u3066\u3082\u5b9f\u306f\u5148\u307b\u3069\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u307b\u3068\u3093\u3069\u5168\u3066\u306e\u3053\u3068\u3092\u3084\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u307b\u3093\u306e\u5c11\u3057\u3060\u3051\u3067\u4e8c\u6bb5\u968e\u8a8d\u8a3c\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u767b\u9332\u3059\u308b<\/h2>\n<p>\u307e\u305a\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092Laravel\u306b\u767b\u9332\u3057\u307e\u3059\u3002<br \/>\n<code>app\/Http\/Kernel.php<\/code>\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5c02\u7528\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u767b\u9332\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>    protected $routeMiddleware = [\r\n\r\n        \/\/ \u7701\u7565\r\n\r\n        <strong>'webauthn' =&gt; \\LaravelWebauthn\\Http\\Middleware\\WebauthnMiddleware::class,<\/strong>\r\n    ];<\/pre>\n<h2>\u767b\u9332\u3057\u305f\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u30eb\u30fc\u30c8\u306b\u9069\u7528\u3059\u308b<\/h2>\n<p>\u3042\u3068\u306f\u3001\u5148\u307b\u3069\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\uff12\u6bb5\u968e\u8a8d\u8a3c\u3057\u305f\u3044\u30eb\u30fc\u30c8\u306b\u9069\u7528\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u4ee5\u4e0b\u306f<code>\/home<\/code>\u306b\u9069\u7528\u3055\u305b\u3066\u3044\u308b\u4f8b\u3067\u3059\u3002<\/p>\n<pre>Route::middleware(['auth', <strong>'webauthn'<\/strong>])-&gt;group(function () {\r\n\r\n    Route::get('\/home', 'HomeController@index')-&gt;name('home');\r\n\r\n});<\/pre>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<br \/>\n<span style=\"font-size: 1rem;\">\u307e\u305a\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30fc\u3092\u30d1\u30bd\u30b3\u30f3\u306eUSB\u306b\u63a5\u7d9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4239\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_3.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_3.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_3-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u203b \u3061\u306a\u307f\u306b<code>Google Chrome<\/code>\u3067\u3057\u305f\u3089<a href=\"chrome:\/\/usb-internals\/\">chrome:\/\/usb-internals\/<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001<code>device<\/code>\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u6642\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u3089\u3046\u307e\u304f\u8a8d\u8b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4236\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_5.png\" alt=\"\" width=\"891\" height=\"231\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_5.png 891w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_5-300x78.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_5-768x199.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u3067\u306f\u3001<code>https:\/\/example.test\/login<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4247\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_7.png\" alt=\"\" width=\"723\" height=\"265\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_7.png 723w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_7-300x110.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u304c\u5b8c\u4e86\u3057\u305f\u3089<code>https:\/\/example.test\/webauthn\/register<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\uff08\u3053\u306e\u30da\u30fc\u30b8\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30fc\u3092\u767b\u9332\u3057\u307e\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4248\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_8.png\" alt=\"\" width=\"448\" height=\"293\" \/><\/p>\n<p>\u3059\u308b\u3068\u4e0a\u306e\u3088\u3046\u306a\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u304c\u8868\u793a\u3055\u308c\u3066\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30fc\u304c\u5149\u308a\u307e\u3059\uff08\u3053\u306e\u30ad\u30fc\u3060\u3051\u306e\u53ef\u80fd\u6027\u3042\u308a\uff09\u306e\u3067\u3001\u6307\u3092\u30bf\u30c3\u30c1\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4238\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_2.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_2.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_2-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3082\u3057\u767b\u9332\u304c\u3046\u307e\u304f\u3044\u304f\u3068\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u4e00\u65e6\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u518d\u5ea6\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3053\u3053\u304b\u3089\u304c\uff12\u6bb5\u968e\u8a8d\u8a3c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4247\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_7.png\" alt=\"\" width=\"723\" height=\"265\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_7.png 723w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_7-300x110.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067\u30ed\u30b0\u30a4\u30f3\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u518d\u5ea6\u4ee5\u4e0b\u306e\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u540c\u3058\u304f\u6307\u3092\u30bf\u30c3\u30c1\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4249\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_8.png\" alt=\"\" width=\"448\" height=\"293\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_8.png 448w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_8-300x196.png 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/p>\n<p>\u3053\u308c\u3067\u8a8d\u8a3c\u304c\u3067\u304d\u305f\u3089\uff12\u6bb5\u968e\u8a8d\u8a3c\u306f\u5b8c\u6210\u3067\u3059\u3002<br \/>\n<span style=\"font-size: 1rem;\">\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/span><\/p>\n<h1>\u3061\u306a\u307f\u306b<\/h1>\n<p>\u4eca\u56de\u5229\u7528\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u65e5\u672c\u8a9e\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u82f1\u8a9e\u8868\u8a18\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001<code>\/resources\/lang<\/code>\u30d5\u30a9\u30eb\u30c0\u5185\u306b<code>webauthn<\/code>\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u3064\u304f\u308a\u3001\u3055\u3089\u306b\u305d\u306e\u4e2d\u306b<code>ja<\/code>\u30d5\u30a9\u30eb\u30c0\u3001\u3055\u3089\u306b\u305d\u306e\u4e2d\u306b<code>errors.php<\/code>\u3068<code>messages.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u7ffb\u8a33\u5185\u5bb9\u306f\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\uff08error.php\uff09<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nreturn [\r\n    'user_unauthenticated' =&gt; 'Webauthn\u3067\u8a8d\u8a3c\u3059\u308b\u524d\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002',\r\n    'auth_data_not_found' =&gt; '\u8a8d\u8a3c\u30c7\u30fc\u30bf\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002',\r\n    'create_data_not_found' =&gt; '\u767b\u9332\u30c7\u30fc\u30bf\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002',\r\n    'object_not_found' =&gt; '\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002',\r\n\r\n    'not_supported' =&gt; '\u30d6\u30e9\u30a6\u30b6\u304cWebAuth\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002',\r\n    'not_secured' =&gt; 'WebAuthn\u3067\u306f\u30bb\u30ad\u30e5\u30a2\u306a\u63a5\u7d9a\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u3082\u3057HTTP\u63a5\u7d9a\u3067\u30c6\u30b9\u30c8\u3059\u308b\u5834\u5408\u306f\u300clocalhost\u300d\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002',\r\n    'key_already_used' =&gt; '\u3053\u306e\u30ad\u30fc\u306f\u3059\u3067\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3082\u3046\u4e00\u5ea6\u767b\u9332\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002',\r\n    'key_not_allowed' =&gt; '\u51e6\u7406\u304c\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3057\u305f\u304b\u62d2\u5426\u3055\u308c\u307e\u3057\u305f\u3002',\r\n\r\n];<\/pre>\n<p><strong>\uff08messages.php\uff09<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nreturn [\r\n    'buttonAdvise' =&gt; '\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30fc\u306b\u30dc\u30bf\u30f3\u304c\u3042\u308b\u3088\u3046\u3067\u3057\u305f\u3089\u3001\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\r\n    'noButtonAdvise' =&gt; '\u3082\u3057\u306a\u3044\u3088\u3046\u3067\u3057\u305f\u3089\u3001\u4e00\u5ea6\u5916\u3057\u3066\u3082\u3046\u4e00\u5ea6\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\r\n    'success' =&gt; '\u30ad\u30fc\u304c\u691c\u51fa\u3055\u308c\u3001\u8a8d\u8a3c\u3055\u308c\u307e\u3057\u305f\u3002',\r\n    'insertKey' =&gt; '\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30fc\u3092\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\r\n    'cancel' =&gt; '\u30ad\u30e3\u30f3\u30bb\u30eb',\r\n\r\n    'auth' =&gt; [\r\n        'title' =&gt; '\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30fc\u8a8d\u8a3c',\r\n    ],\r\n\r\n    'register' =&gt; [\r\n        'title' =&gt; '\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30fc\u3092\u767b\u9332',\r\n    ],\r\n];<\/pre>\n<p>\u3053\u308c\u3089\u3092\u8a2d\u7f6e\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4253\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_9.png\" alt=\"\" width=\"554\" height=\"564\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_9.png 554w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/07\/web_authn_9-295x300.png 295w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f<code>WebAuthn<\/code>\u3092<code>Laravel<\/code>\u3067\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u306f\u3067\u3059\u304c\u3001\u5f53\u521d\u306f\u8a8d\u8a3c\u304b\u3089\u30ad\u30fc\u306e\u767b\u9332\u307e\u3067\u5168\u3066\u81ea\u5206\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u6b63\u76f4\u306a\u3068\u3053\u308d\uff08\u304a\u305d\u3089\u304f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u306f\u5fc5\u8981\u306a\u306e\u3060\u308d\u3046\u3068\u306f\u601d\u3046\u306e\u3067\u3059\u304c\uff09\u300c\u306a\u3093\u3067\u3053\u3093\u306a\u4ed5\u69d8\u306a\u306e\uff01\uff1f\u300d\u307f\u305f\u3044\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u7d50\u679c\u7684\u306b\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u3060\u4eca\u306e\u3068\u3053\u308d\u3001\u305d\u308c\u307b\u3069<code>PHP<\/code>\u306e<code>WebAuthn<\/code>\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u591a\u3044\u308f\u3051\u3067\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u304c\u3001\u3053\u308c\u304b\u3089<code>WebAuthn<\/code>\u304c\u4eba\u6c17\u306b\u306a\u3063\u3066\u304d\u305f\u3089\u3001\u304d\u3063\u3068<code>Laravel<\/code>\u672c\u5bb6\u306e\u65b9\u3067\u3082\u5b9f\u88c5\u3057\u3066\u3044\u304f\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u3082\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u3082\u60c5\u5831\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u307f\u306a\u3055\u3093\u3082\u5f37\u529b\u306a\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-444 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/16.png\" alt=\"\" width=\"370\" height=\"310\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/16.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/16-300x251.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u3010Python\u3011Pasori RC-S380\u3067\u5165\u9000\u5ba4\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u308b\u3068\u3044\u3046\u8a18\u4e8b\u306e\u4e2d\u3067\u3001\u975e\u63a5\u89e6\u578b\u30ab\u30fc\u30c9\u30ea\u30fc\u30c0\u30fc\u306ePasori\u3092amazon\u3067\u30dd\u30c1\u3063 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=4232\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel\u3067WebAuthn\u3092\u4f7f\u3063\u305f\uff12\u6bb5\u968e\u8a8d\u8a3c\u3092\u5b9f\u88c5\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":4258,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12],"tags":[47],"class_list":["post-4232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-vue-js","tag-47"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4232"}],"version-history":[{"count":12,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4232\/revisions"}],"predecessor-version":[{"id":4257,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4232\/revisions\/4257"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/4258"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}