A toolset for the most requirements dealing with OAuth2 and OpenID Connect.
Project description
OAuth2Tools
A toolset for the most requirements dealing with OAuth2 and OpenID Connect.
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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oauth2tools-0.5.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for oauth2tools-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf80def7a87eeff12a83706b741f895efa876ab0782ee6d21b6c53e32e0ee89 |
|
MD5 | 07e954b6fb7da7e966b794a2e5c8077c |
|
BLAKE2b-256 | b9abecf707be8cd71b67cdc3e63523700e2715699fb5d5c327e56dbf56bea157 |