All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login

All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
matthew's Avatar

matthew / ConfigProvider.php

0 likes
0 forks
4 files
Last active 10 months ago
An example of attaching a delegator factory to the Mezzio RouteCollectorInterface to automate route registration.
1 <?php
2
3 namespace SomeModule;
4
5 use Laminas\Stdlib\ArrayUtils\MergeRemoveKey;
6 use Mezzio\Router\RouteCollectorInterface;
7
8 class ConfigProvider
9 {
10 public function __invoke(): array
matthew's Avatar

matthew / Yubikey all the things

0 likes
0 forks
1 files
Last active 2 months ago
Notes from my journey to getting Yubikey to authenticate everything on my system.

U2F for login and sudo access

I followed this guide: https://support.yubico.com/s/article/Ubuntu-Linux-login-guide-U2F

For step 3, I only did the user-specific pamu2fcfg setup; I did not put it at the system level. This makes the $HOME partition portable, and allows different users on the system to require U2F and/or use different keys.

Challenge-Response auth with YubiKey

When I originally purchased my key, and for four years thereafter, I used the challenge-response feature for restricting user authentication and sudo access.

Newer Older

Powered by Opengist ⋅ Load: 41ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文