Skip to main content

"Invenio module that provides OAuth web authorization support."

Project description

https://img.shields.io/github/license/inveniosoftware/invenio-oauthclient.svg https://github.com/inveniosoftware/invenio-oauthclient/workflows/CI/badge.svg https://img.shields.io/coveralls/inveniosoftware/invenio-oauthclient.svg https://img.shields.io/pypi/v/invenio-oauthclient.svg

Invenio module that provides OAuth web authorization support.

OAuth client support is typically used to allow features such as social login (e.g. Sign in with Twitter) and access to resources owned by a specific user at a remote service. Both OAuth 1.0 and OAuth 2.0 are supported.

Features:

  • Views: OAuth login and authorized endpoints, linked account settings and sign-up handling.

  • Client: A client to interact with remote applications.

  • Contrib: Ready-to-use GitHub, ORCID, and CERN remote applications.

  • Models: Persistence layer for OAuth access tokens including support for storing extra data together with a token.

  • Handlers: Customizable handlers for deciding what happens when a user authorizes a request.

Further documentation is available on https://invenio-oauthclient.readthedocs.io/

Changes

Version v6.1.0 (released 2025-XX-XX)

  • feat: support for refresh tokens

  • feat: link-only remotes

Version v6.0.0 (released 2025-11-03)

  • perf(models): changed SQL column type of extra_data to JSONB instead of JSON for PostgreSQL

    • This migration could flood the WAL when run on very large oauthclient_remoteaccount tables (~50k+ rows) as well as causing a full lock that lasts several minutes and stops users from being able to log in with third-party accounts. This won’t happen in the majority of cases. For instances not meeting this size criteria, the automated Alembic migration will suffice. However, for tables above this size, please use instead the step-by-step instructions in the upgrade guide (included in the documentation of this module).

Version v5.3.1 (released 2025-10-21)

  • i18n: pulled translations

Version v5.3.0 (released 2025-09-24)

  • feat(contrib): add EOSC EU Node AAI OIDC provider

Version v5.2.0 (released 2025-07-17)

  • i18n: pulled translations

  • i18n: push translations

  • fix app allowed hosts (#356)

  • fix: pkg_resources DeprecationWarning

  • fix: setuptools require underscores instead of dashes

  • i18n: removed deprecated messages

  • fix: i18n-unrelated keycloak test missing app fixture

  • Fix: i18n: added gettext to places where it was missing

  • inline(docs): fix

Version 5.1.0 (released 2024-12-12)

  • fix: DeprecationWarning:

  • fix: TypeError

  • setup: move to flask-oauthlib-invenio

Version 5.0.0 (released 2024-12-06)

  • fix: sqlalchemy.exc.ArgumentError:

  • global: use invenio_base.jws not itsdangerous

  • tests: apply changes for sqlalchemy>=2.0

  • setup: bump major dependencies

Version 4.1.3 (release 2024-12-03)

  • utils: improve and fix creation/update of groups

Version 4.1.2 (release 2024-11-30)

  • setup: pin dependencies

  • ci: use reusable workflow when publishing

Version 4.1.0 (released 2024-11-07)

  • handlers: add basic error handling for roles creation

  • fix: compat for flask-oauthlib

Version 4.1.0 (released 2024-11-07)

  • setup: remove upper pins oauthlib,requests-oauthlib

  • global: jws use from invenio-base

  • fix: for flask >= 3.0.0 compatibility

Version 4.0.2 (released 2024-09-17)

  • fix: inverted check for visible remote apps

Version 4.0.1 (released 2024-09-11)

  • i18n: push translations

  • keycloak: add legacy_url_path parameter to the KeycloakSettingsHelper

  • global: explicitly set and use hide attribute for config

Version 4.0.0 (released 2024-03-23)

  • fix: before_app_first_request deprecation

  • installation: remove invenio-admin

  • installation: switch to uritemplate to avoid dependency conflicts

Version 3.5.1 (released 2023-08-30)

  • orcid: show registration form errors on validations errors

Version 3.5.0 (released 2023-08-30)

  • oauth: handle properly workflow when user is not yet confirmed and auto-confirm is disabled for remote

Version 3.4.1 (released 2023-08-16)

  • utils: removed creation of UserNeed email

Version 3.4.0 (released 2023-08-09)

  • groups: make groups fetching async

  • load user and role needs on identity loaded

Version 3.3.0 (released 2023-07-24)

  • settings: Improve layout for a11y

Version 3.2.0 (released 2023-07-24)

  • authorize: refactor authorize/signup handlers

  • update translations

Version 3.1.2 (released 2023-06-23)

  • client: preserve “next” URL param on login redirection

Version 3.1.1 (released 2023-06-21)

  • client: fix user confirmation

Version 3.1.0 (released 2023-06-20)

  • client: add provider’s logout url

Version 3.0.0 (released 2023-06-14)

  • base client: add group handler

Version 2.3.0 (released 2023-03-13)

  • OpenAIRE AAI sandbox remote moved to Keycloak.

  • Keycloak settings helper accept configurable scopes for token request.

Version 2.2.0 (released 2023-03-02)

  • remove deprecated flask_babelex dependency and imports

  • upgrade invenio-i18n

Version 2.1.0 (released 2022-12-19)

  • Increase minimal Python version to 3.7.

  • Deprecate the old CERN OAuth contrib.

  • Allow specific sign-up settings per OAuth app.

  • Add signup info_serialize handler to allow serializing the user info response.

Version 2.0.1 (released 2022-07-01)

  • Remove Babel extension.

  • Add german translations.

  • Fix checkbox label display inside loops.

Version 2.0.0 (released 2022-05-24)

  • Moved UserIdentity to Invenio-Accounts.

  • Fixes to signup error handling.

Version 1.5.4 (released 2021-10-18)

  • Add OpenAIRE AAI contrib.

Version 1.5.3 (released 2021-10-18)

  • Unpin Flask.

Version 1.5.2 (released 2021-07-12)

  • Add german translations

Version 1.5.1 (released 2021-05-26)

  • Allow to automatically redirect to the external login provider under certain conditions.

  • Disable the possibility to disconnect the last external account to always have at least one external account connected (when configured).

  • Make registration form customizable to allow adding extra form fields when the user login the first time.

  • CERN contribs: fix bug that will execute login/logout signal for CERN contribs even if the user logged in a different way.

Version 1.5.0 (released 2021-05-07)

  • Keycloak: refactor settings helper to allow multiple instances of configured keycloak authentication providers at the same time

  • OAuth: create a new settings helper to set up in an easier way a OAuth authentication provider.

Version 1.4.4 (released 2021-02-05)

  • CERN OpenID: make /userinfo endpoint and JWT token decode parameters configurable

Version 1.4.3 (released 2021-02-05)

  • REST auth: add exception logger

Version 1.4.2 (released 2021-01-15)

  • Add Keycloak contrib.

Version 1.4.1 (released 2021-01-04)

  • Use invenio-theme THEME_ICONS config

  • Fix disconnect button styling

Version 1.4.0 (released 2020-12-09)

  • Use centrally managed test dependencies.

  • Add CERN OpenID contrib.

  • Migrate CI to GitHub Actions.

  • Several UI styling fixes.

Version 1.4.0a1 (released 2020-06-22)

  • Integrates Semantic-UI templates.

Version 1.3.1 (released 2020-06-03)

  • Exports rest handlers.

Version 1.3.0 (released 2020-05-15)

  • Introduce InvenioOAuthClientREST extension.

  • The module can be used as a full REST OAuth service. For example, from an SPA application. All responses are being handled by redirecting to user’s configured endpoints.

  • The new configuration variable OAUTHCLIENT_REST_REMOTE_APPS defines the registered applications that are using the REST OAuth workflow.

Version 1.2.1 (released 2020-04-17)

  • Fix args from redirect target’ encoding

Version 1.2.0 (released 2020-03-13)

  • Centrally manage Flask dependency by invenio-base

  • Drop support for Python 2.7

Version 1.1.3 (released 2019-07-29)

  • Remove deprecated warnings from 3rd party modules

  • Fix setup file extension

  • Fix missing args from redirect target

Version 1.1.2 (released 2019-02-01)

  • CERN OAuth: fix logout url

Version 1.1.1 (released 2019-01-22)

  • CERN OAuth: filter authentication by IdentityClass

  • Pin oauthlib lower than 3.0

Version 1.1.0 (released 2018-12-14)

Version 1.0.0 (released 2018-03-23)

  • Initial public release.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

invenio_oauthclient-6.1.0.tar.gz (100.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

invenio_oauthclient-6.1.0-py2.py3-none-any.whl (219.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file invenio_oauthclient-6.1.0.tar.gz.

File metadata

  • Download URL: invenio_oauthclient-6.1.0.tar.gz
  • Upload date:
  • Size: 100.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for invenio_oauthclient-6.1.0.tar.gz
Algorithm Hash digest
SHA256 47d0aefaba7e1ecc938bdc53986cf4624c62fb525bc948cc496f0bd90003eb06
MD5 29abb468b81675ea224d0248cd3ac240
BLAKE2b-256 634e5b33815d6497cee23c658313574f865d17b1f90fbac3f524ddb6cc6632fe

See more details on using hashes here.

File details

Details for the file invenio_oauthclient-6.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for invenio_oauthclient-6.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cc141d24a29b70fd4eecde6bb6c06f6349f1ab8370c65bb3604e770d04d2c616
MD5 3795281e805c8cb1e35c49494572790b
BLAKE2b-256 54d191d2ada8bb45f0ba79e5e1e279788dcbb51a3d39a54070ae4aaa56b5c3ed

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