Metadata-Version: 1.1
Name: esia-connector
Version: 0.1
Summary: ESIA integration library
Home-page: https://github.com/saprun/esia-connector
Author: SAPRUN Team
Author-email: andrey.beliak@saprun.com
License: BSD
Description: ESIA-Connector: integration library for esia.gosuslugi.ru portal
        ================================================================
        
        Abstract
        --------
        
        ESIA-Connector is an integration library for authenticating users using Russian Federation
        official authentication services, provided by ESIA (aka "gosuslugi": http://esia.gosuslugi.ru),
        written in python 3.
        
        
        About
        -----
        ESIA-Connector supports authentication using OpenId Connect protocol and includes
        simple built-in REST client for fetching user personal information.
        
        
        Structure
        ---------
        ESIA-Connector library contains next classes:
        
        - ESIAAuth - class for generating url for user authentication at esia portal and handling redirected
        redirected authentication request (handler exchanges request data for ESIA access token).
        
        - EsiaInformationConnectorBase - base class for using ESIA REST-based information services.
        
        - EsiaPersonInformationConnector - class for fetching user personal information using obtained token
        
        
        Installation
        ------------
        
        To install ESIA-connector, simply:
        
        .. code-block:: bash
        
            $ pip install git+https://github.com/saprun/esia-connector.git@master
        
        
        Documentation
        -------------
        
        For more information see examples/flask_app.py - full featured integration example built on top flask
        web framework. To run example flask app without library install make next steps:
        
        1) Generate you key and certificate and replace with em files in examples/res/. Create your system at ESIA and upload you certificate to ESIA server. Modify examples/flask_app.py - specify your system id as esia_client_id.
        
        2) Run in shell these commands:
        
        .. code-block:: bash
        
            $ git clone git@github.com:saprun/esia-connector.git
            $ cd esia_connector
            $ pip install -r requirements-dev.txt
            $ cd esia_connector/examples
            $ python flask_app.py
        
        Server will be listening on http://localhost:5000. Browse to that address from your web browser, click
        link on the page and you'll be redirected to ESIA portal. Enter valid user credentials and you'll be
        redirected back to your local server. If everything is ok, you'll see JSON containing your name.
        
        
        Contribute
        ----------
        
        #. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
        #. Fork this repository on GitHub to start making your changes. Please note, that for development you have to install requirements manually using: pip install -r requirements-dev.txt command in cloned repository directory.
        
        #. Write a test which shows that the bug was fixed or that the feature works as expected.
        #. Send a pull request.
        
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Requires: requests
Requires: pytz
Requires: PyJWT
