yubikey icon indicating copy to clipboard operation
yubikey copied to clipboard

Incompatable with Windows

Open Elycin opened this issue 6 years ago • 1 comments

Experienced this odd quirk toady and was able to confirm it with WSL. Inside WSL the code works as expected but, let me give a brief introduction.

Environment details: Windows:

C:\Users\elyci\PhpstormProjects\disblog>php -v
PHP 7.2.2 (cli) (built: Jan 31 2018 19:31:15) ( NTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

WSL:

elycin@DESKTOP-67FBEPH:/mnt/c/Users/elyci/PhpstormProjects/disblog$ php -v
PHP 7.2.3-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Mar  6 2018 11:18:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.3-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

I have a windows development machine that has an instance of php 7.2.2 installed via chocolatey with a modified php.ini to support curl and pdo_mysql extensions, upon testing some of the example code inside a laravel project I've determined in a windows environment that using the dd debugger with the validator's ->success() function, that I get different results.

Windows 10 (Native Environment)

C:\Users\elyci\PhpstormProjects\disblog>php artisan add:yubikey ccccccfrkvvreeivddjvfgrgftttlutbuvftgefnence
false

Windows 10 Subsystem for Linux (with different freshly generated OTP token)

elycin@DESKTOP-67FBEPH:/mnt/c/Users/elyci/PhpstormProjects/disblog$ php artisan add:yubikey ccccccfrkvvreulghldgtcfbhfunvccrnnhifnbhhkut
true

I wish I could provide more details since this seems to be a platform specific bug, maybe even a extension problem but I hope this helps find a possible solution for others.

Elycin avatar Mar 11 '18 22:03 Elycin

Side note: Don't worry about the OTP tokens potentially be revealing, I have a dedicated yubikey for testing!

Elycin avatar Mar 11 '18 22:03 Elycin