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.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for oauth2tools-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4f953ee2df745d863919add7e6913072cb081aa8a5506ea2299ec9f654d3cec |
|
MD5 | caf364b69c6232a52677bca55856e29d |
|
BLAKE2b-256 | 5bd50a6138f812155098e94af65c872ada8c5f37516be0d91d5d218024628567 |