Metadata-Version: 2.1
Name: oauth2tools
Version: 0.4.2
Summary: A toolset for the most requirements dealing with OAuth2.
Author: Andreas Rühl
Maintainer: Andreas Rühl
License: MIT
Project-URL: GitHub, https://github.com/aruehl/oauth2tools
Project-URL: Bug Tracker, https://github.com/aruehl/oauth2tools/issues
Keywords: OAuth2,OIDC,OpenID Connect,Tools,Helper
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# OAuth2Tools

A toolset for the most requirements dealing with OAuth2.

###  building the URL for the authentication endpoint

    tools = OAuthTools(
        well_known_url="<url>", 
        client_id="<cid>", 
        client_secret="<secret>")
    auth_url = tools.authorization_url(redirect_uri="<uri>")

### Using the Browser in a CLI script for authentication

    o4c = OAuth4CLI(
        well_known_url="<url>", 
        client_id="<cid>", 
        client_secret="<secret>")
    response = o4c.login()
    access_token = response.get('access_token')
