File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/auth/__pycache__/yubico.cpython-310.pyc
Back
o ;j� � @ s� d Z ddlZe�e�ZzddlmZmZ dZW n e y" dZY nw dd� Z dd � Zd d� ZedkrMd dddd�iiZ edd�rGed� dS ed� dS dS )a Provide authentication using YubiKey. .. versionadded:: 2015.5.0 :depends: yubico-client Python module To get your YubiKey API key you will need to visit the website below. https://upgrade.yubico.com/getapikey/ The resulting page will show the generated Client ID (aka AuthID or API ID) and the generated API key (Secret Key). Make a note of both and use these two values in your /etc/salt/master configuration. /etc/salt/master .. code-block:: yaml yubico_users: damian: id: 12345 key: ABCDEFGHIJKLMNOPQRSTUVWXYZ .. code-block:: yaml external_auth: yubico: damian: - test.* Please wait five to ten minutes after generating the key before testing so that the API key will be updated on all the YubiCloud servers. � N)�Yubico�yubico_exceptionsTFc C sV i }zt d �| d�rtt d | �� �\|d<