Metadata-Version: 2.1
Name: requests-restish-auth
Version: 0.1
Summary: Authenticate requests by shelling-out to restish for an OIDC flow
Author-email: Exoscale <support@exoscale.com>
License: Copyright 2022 Exoscale
        
        Permission to use, copy, modify, and distribute this software for any
        purpose with or without fee is hereby granted, provided that the above
        notice and this permission notice appear in all copies.
        
        THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
        WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
        MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
        ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
        WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
        ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
        OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
        
Project-URL: Homepage, https://github.com/exoscale/requests-restish-auth
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/x-rst
License-File: LICENSE

Requests Restish Auth
=====================

This package lets you shell-out to `restish`_ for negotiating a bearer token
with an OIDC provider, and use that token for authenticating requests.

.. _restish: https://rest.sh


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

::

    pip install requests-restish-auth

Usage
-----

.. code-block:: python

    import requests
    from restish_auth import RestishAuth

    auth = RestishAuth("my-restish-api-name")
    response = requests.get("https://my-api-endpoint.com/", auth=auth)
