Using Laravel Passport with AJAX requests
When building an app which requires users to log in, Laravel makes authentication
easy with its Auth classes. Similarly, the Passport package can be used to facilitate
building an API without the hassle of writing an OAuth framework. But Passport also
includes a middleware that allows you to consume your API directly from the browser,
meaning your API can be used to serve AJAX requests. The benefit to this approach
is twofold. You simply only need to maintain a single set of controllers to…
Read More →
Enabling the fingerprint reader on a ThinkPad T470 in Fedora 31
The Thinkpad T470 comes equipped with a fingerprint scanner to allow easier
authorization. Unfortunately, the drivers are still under prototype development
but are working in Fedora. In order to use the fingerprint scanner, it needs to
be initialized with data which can only currently be done from Windows.
First make sure your system is up to date.
bash
sudo dnf update
Restart the machine in order to proceed. In order for VirtualBox to work, some
settings need to be tweaked in the BIOS. …
Read More →