A toolset for the most requirements dealing with OAuth2.
Project description
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')
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.4.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for oauth2tools-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b315420de8a50beaf1983582bc16adbda9cde6c41a6d1dd7efbd72bfb48cb40d |
|
MD5 | 41e88afdc8d34dc5d751aedab5878703 |
|
BLAKE2b-256 | 7105170c023b4657bf52490ffd51adeab8860069ae2510daeb07e342e5ccd047 |