semvec/pypi-packages huggingface dataset:
httpie-hmac-auth 0.2.3
HMAC Auth plugin for HTTPie.
License: MIT

httpie-hmac-auth
================

`HMAC <https://tools.ietf.org/html/rfc2104>`_ auth plugin for `HTTPie <https://github.com/jkbr/httpie>`_.


HTTP requests will be signed with a shared secret key using HMAC. The string to sign format is:

.. code-block:: bash

    <Method>\n
    <Content-MD5>\n
    <Content-Type>\n
    <Date>\n
    <URL>

Example String-to-sign

.. code-block:: bash

    POST
    vVqHE1k/uBRCoWe0FAh95g==
    application/json
    Tue, 12 Jan 2016 14:57:28 GMT
    /api/v1/avatars

Example Authorization Header with HMAC signature

.. code-block:: bash

    Authorization: HMAC XH+v0qhV4i/89y/DT2OOJx9Kjf3f/0j+w2aGZk625nU=

Installation
------------

.. code-block:: bash

    $ pip install httpie-hmac-auth

You should now see ``hmac`` under ``--auth-type`` in ``$ http --help`` output.

Usage
-----

.. code-block:: bash

    $ http --auth-type=hmac --auth='client:secret' example.org

Examples
--------

To authenticate a client request when an access key is required by the server to lookup the shared secret:

.. code-block:: bash

    $ http --auth-type=hmac --auth="client:secret" example.org

To authenticate a client request when there is no requirement for a client to supply an access key:

.. code-block:: bash

    $ http --auth-type=hmac --auth=":secret" example.org

License
-------

Copyright (c) 2016 The Guardian. Available under the MIT License.
PAMMySQLTools 0.2.1
A set of tools to manage users from pam_mysql
License: MIT

PAMMySQL Tools
==============

`|build| <https://travis-ci.org/cperrin88/PAMMySQLTools>`_
`|coverage| <https://coveralls.io/github/cperrin88/PAMMySQLTools?branch=master>`_

PAMMySQL Tools ist a suite to manage users for pam\_mysql and
libnss-mysql. It tries to mimic the behaviours of the linux tools
user{add,mod,del} and group{add,mod,del}

Installation
------------

To install simply run:

::

    pip install PAMMySQLTools

This will install the scripts:

-  myuseradd
-  myusermod
-  myuserdel
-  mygroupadd
-  mygroupmod
-  mygroupdel

Configuration
-------------

In the directory ``docs`` you can find an example config with all
everything set. If you don't set a value, the tools will assume the
values in the original config as default values.

Running the Software
--------------------

To display help for any of the scripts, start with the --help parameter

For example:

::

    $ myuseradd --help
    Usage: myuseradd [OPTIONS] LOGIN

    Options:
      -b, --basedir BASE_DIR          base directory for the home directory of the
                                      new account
      -c, --comment COMMENT           GECOS field of the new account
      -d, --home-dir HOME_DIR         home directory of the new account
      -e, --expiredate EXPIRE_DATE    expiration date of the new account
      -f, --inactive INACTIVE         password inactivity period of the new
                                      account
      -g, --gid GROUP                 name or ID of the primary group of the new
                                      account
      -G, --groups GROUPS             list of supplementary groups of the new
                                      account
      -k, --skel SKEL_DIR             use this alternative skeleton directory
      -K, --key KEY=VALUE             override /etc/login.defs defaults
      -M, --no-create-home / -m, --create-home
                                      do not create the user's home directory
      -U, --no-user-group / -N, --user-group
                                      do not create a group with the same name as
                                      the user
      -o, --non-unique                allow to create users with duplicate (non-
                                      unique) UID
      -p, --password PASSWORD         encrypted password of the new account
      -r, --system                    create a system account
      -s, --shell SHELL               login shell of the new account
      -u, --uid UID                   user ID of the new account
      --config CONF_PATH              path to the config file for this tool
      --help                          Show this message and exit.

.. |build| image:: https://travis-ci.org/cperrin88/PAMMySQLTools.svg?branch=master
.. |coverage| image:: https://coveralls.io/repos/github/cperrin88/PAMMySQLTools/badge.svg?branch=master