workfloworchestrator / oauth2-lib

Oauth2 library with an example implementation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

jaegertracing/jaeger-client-node#124 (comment)

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

About

Oauth2 library with an example implementation.

License:Apache License 2.0


Languages

Language:Python 99.8%Language:Shell 0.2%