Skip to main content

This is the SURF Oauth2 module that interfaces with the oauth2 setup.

Project description

OAuth2-lib

pypi_version Supported python versions codecov

This Project contains a Mixin class that wraps an openapi-codegen python client, to inject Opentelemetry spans and api call retries. It also contains a number of FastAPI dependencies which enables Policy enforcement offloading to Open Policy Agent.

The project contains a number of OIDC classes that are tailored to the SURF environment.

Installation

This can be done as follows:

Step 1:

First install flit to enable you to develop on this repository

pip install flit

Step 2:

To install all development dependencies

flit install --deps develop --symlink

for pydantic V2 you also need to install pydantic_settings: pip install pydantic_settings.

This way all requirements are installed for testing and development.

Development

Depending on the feature type, run bumpversion (patch|minor|major) to increment the version you are working on. For example to update the increment the patch version use

bumpversion patch

For MAC users looking and experimenting with Opentelemetry (OTEL)

https://github.com/jaegertracing/jaeger-client-node/issues/124#issuecomment-324222456

Supported Python versions

oauth2-lib must support the same python versions as orchestrator-core.

Exceptions to this rule are:

  • A new python version is released: oauth2-lib should support the new version before orchestrator-core does
  • Support for an old python version is dropped: oauth2-lib should drop the python version after orchestrator-core does

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

oauth2_lib-2.3.0.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

oauth2_lib-2.3.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file oauth2_lib-2.3.0.tar.gz.

File metadata

  • Download URL: oauth2_lib-2.3.0.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for oauth2_lib-2.3.0.tar.gz
Algorithm Hash digest
SHA256 1715459b20a025a81962dd4c2ac5ee49cc4cb0ef24e73037221db853a6feecc9
MD5 d0dfcb0dd6dfe6a704f969675165cdc8
BLAKE2b-256 ab691ba821d9f2ae7ef6efc967b329a9e059d1e81dd2cb1d7239998b730602ab

See more details on using hashes here.

File details

Details for the file oauth2_lib-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: oauth2_lib-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for oauth2_lib-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebe167aff61359f72a9cfddccc8ed292c894321c376b107b49fd909b05b9af06
MD5 12c1c4aca3931293fb19b29783d650e6
BLAKE2b-256 c44c9ea9289680e4176e2df0a30560000d850966c1692bff3b76160f10b4e49d

See more details on using hashes here.

Supported by

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