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

Documentation

The documentation can be found on Read the Docs at soom.

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.2.tar.gz (5.3 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.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oauth2flow-0.1.2.tar.gz
  • Upload date:
  • Size: 5.3 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.2.tar.gz
Algorithm Hash digest
SHA256 bcf56d54071af1f20f085ca925bfd38f5914fab47456a436e44b44644686a85b
MD5 0d75f29f79b3a70e7aec88168ed4f35a
BLAKE2b-256 8df7501c248550a42595d888670b085b06b3cd8279872f5082ce5e933d11f090

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oauth2flow-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a4a7e1b44845373d372084ca3a9b7126f456c0649c3da2ac86f7ee4f8fb57c4a
MD5 75354f39a63af4ba4868bebc4a880962
BLAKE2b-256 d50e7608db82852256dcb1634ec3efb5ea195017999a48a52ff476c9c2d649a1

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