%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/auth/ |
| Current File : //proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/auth/rest.pyc |
�
���^c @@ sn d Z d d l m Z m Z m Z d d l Z d d l Z e j e � Z
d Z d � Z d � Z
d � Z d S( uz
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 object that maps to a regular eauth YAML structure
as above.
i ( t absolute_importt print_functiont unicode_literalsNu restc C@ s t S( N( t __virtualname__( ( ( s2 /usr/lib/python2.7/site-packages/salt/auth/rest.pyt __virtual__&