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.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for oauth2tools-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d2efcc0c2bff028ed9af0d930951ea51a788e360c366ab5666da7a1e2aa5d59 |
|
MD5 | 51d552c5a9c2b9c8d1d8e3253743e6e2 |
|
BLAKE2b-256 | 7eb8b4ac2e75e5bedc46bed93c7e810cfe9dfca1009d059d18349a7028e30469 |