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.1.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.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oauth2flow-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 28a65a4c7cd5464003291abe78c5a26c4ae84f622312c48573e496e731aa0cfa
MD5 f17d05a220ae6697bbe97f13c566f2e2
BLAKE2b-256 be074988ad78fdc4beb274d30bccb88fbfc52244bc9136bfc1e67bf733c95e4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oauth2flow-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac51e71995fa8770d4f24857d19718aa0b79ad1dcd90f9ed2ef9c6cd0de661f9
MD5 70ae183b0ef1c5e82cbfa9ef35a153c0
BLAKE2b-256 09ae8fb726ec104b1ec86d729a2eeaca313064faa8edc2f0e7389ca67511c65d

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