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.6.2.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for oauth2tools-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b8c25fc6d729f2d17bafeff8057d76fe09fae7e00f7711059585f124f26fc50 |
|
MD5 | 76efea79769acef58029c1e9a43ce4cc |
|
BLAKE2b-256 | e513c8772775935b6f4e5be5c683ecc511194d3fcaadf219302f1578eb4b5e0f |