Metadata-Version: 2.1
Name: tokko_auth_lite
Version: 0.0.1
Summary: Tokko Auth2 flavor.
Home-page: https://github.com/TokkoLabs/auth-plugins/tokko_auth_lite.git
Author: Jose Salgado
Author-email: jsalgado@navent.com
License: BSD License
Description: # Installation
        
        ```bash
        pip3 install tokko_auth_lite
        sudo -H pip3 install tokko_auth_lite
        ```
        
        # Usage
        ```python
        from tokko_auth_lite.core import Token
        from tokko_auth_lite.tools.testing import TokenFabrik
        
        _jwt = TokenFabrik(permission=["companies:read_branches", "spacex:launch_rockets"])
        
        token = Token.from_header({"Authorization": f"Bearer {_jwt}"})
        print(token)
        print(token.is_valid())
        print(token.permissions)
        print(token.has_permission("companies:read_branches", "spacex:launch_rockets"))
        print(token.has_permission("spacex:launch_rockets"))
        print(token.has_permission("companies:read_branches", "spacex:launch_rockets", require_all=True))
        print(token.user_id)
        ```
        
        # Tutorials
        + [TokenFabrik](./tokko_auth_lite/docs/ES/TUTORIALS.md)
            - [Quiero un JWT](./tokko_auth_lite/docs/ES/TUTORIALS.md#tutorial-i-dame-un-token)
            - [Uso avanzado](./tokko_auth_lite/docs/ES/TUTORIALS.md#tutorial-ii-crear-tokens-customizados)
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Description-Content-Type: text/markdown
