Skip to main content

Software Heritage authentication utilities

Project description

swh-auth is a set of utility libraries related to user authentication in applications and services based on the use of Keycloak and OpenID Connect.

Keycloak is an open source software enabling single sign-on (SSO) with identity and access management.

OpenID Connect (OIDC) is an authentication layer on top of OAuth 2.0, widely used in modern web applications and services.

swh-auth notably offers the following features:

  • the swh.auth.keycloak.KeycloakOpenIDConnect class to ease the interaction with a Keycloak server

  • a pytest plugin with the keycloak_oidc fixture to mock Keycloak responses in unit tests

  • generic backends, views and middlewares to easily plug OpenID Connect authentication in any Django or Django REST framework application

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

swh.auth-0.9.1.tar.gz (53.4 kB view hashes)

Uploaded Source

Built Distribution

swh.auth-0.9.1-py3-none-any.whl (59.6 kB view hashes)

Uploaded Python 3

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