Skip to main content

Client Authenticator for OAuth2

Project description

OAuth2flow Client

Authorization protocol that allows applications to access resources from other applications on the user's behalf.
Allows applications to gain limited access to user information without sharing credentials.

Implements Flow

  • Authorization Code (future)
  • Resource Owner Password Credentials
  • Implicit (future)
  • Client Credentials

Quick Started

Install usign pip:

pip install oauth2flow 

configure variables before using , let's code.

Variables

Environment variables are mandatory for oauth2flow to work in your project, use exports linux or dotenv pypi
to make them available in the development environment.

env.file

CLIENT_ID="client" 
CLIENT_SECRET="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
REDIRECT_URI=""
AUTHORIZATION_BASE_URL=https://provider.com/auth/realms/{RELM}/protocol/openid-connect/auth
TOKEN_URL=https://provider.com/auth/realms/{RELM}/protocol/openid-connect/token
USERINFO_URL=https://provider.com/auth/realms/{RELM}/protocol/openid-connect/userinfo
INTROSPECTION_URL=https://provider.com/auth/realms/{RELM}/protocol/openid-connect/token/introspect
OPENID_CONFIGURATION_URL=https://provider.com/auth/realms/{RELM}/.well-known/openid-configuration

Project in devcontainer

Project was built on top of python 3.12 dockenized devcontainer vscode microsoft environment

"runArgs": ["--env-file",".env"],

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oauth2flow-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oauth2flow-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file oauth2flow-0.1.0.tar.gz.

File metadata

  • Download URL: oauth2flow-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for oauth2flow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39d296c36a3d12cb13362ebacdef21c357d35717716f35e05c981c61491d585e
MD5 c7dcb8bd31fcdf1efb2a09888d7bf797
BLAKE2b-256 145e647f3bd262163baf53f1d9f7439c2167bd8b6b7e9605f9167934eee384e9

See more details on using hashes here.

File details

Details for the file oauth2flow-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: oauth2flow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for oauth2flow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33954572bf75a219674b6d627a997d6599b38599c1560253860028a661750e44
MD5 b8486b6deb57f2bbfe075b14c6353936
BLAKE2b-256 41fcc93db68f70321d3c084ed08deaf581120cd22a0c7ba614fba19e30eba198

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page