File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/auth/__pycache__/rest.cpython-310.pyc
Back
o ;j0 � @ sN d Z ddlZddlZe�e�ZdZdd� Zdd� Z dd � Z d d� Zdd � ZdS )a� Provide authentication using a REST call REST auth can be defined like any other eauth module: .. code-block:: yaml external_auth: rest: ^url: https://url/for/rest/call fred: - .* - '@runner' If there are entries underneath the ^url entry then they are merged with any responses from the REST call. In the above example, assuming the REST call does not return any additional ACLs, this will authenticate Fred via a REST call and allow him to run any execution module and all runners. The REST call should return a JSON array that maps to a regular eauth YAML structure of a user as above. � N�restc C s t S )N)�__virtualname__� r r �B/opt/saltstack/salt/lib/python3.10/site-packages/salt/auth/rest.py�__virtual__"