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.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for oauth2tools-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c94cf6f30a9b29c7ed89ead6766be525845b9483a6b6a6b97d50cb8406fe1b31 |
|
MD5 | 8c4ddb855a26d7c977bd40e325604daa |
|
BLAKE2b-256 | 80b202b3a73259dce52eface70e8cec77426a909fa3aa51c67de7861d331543e |