HomeSoftware Heritage

keycloak: Fix issue in authorization_url since python-keycloak 1.8.1

Description

keycloak: Fix issue in authorization_url since python-keycloak 1.8.1

The scope and state query parameters in the authorization URL are now
handled by the KeycloakOpenID.auth_url method since the release of
python-keycloak 1.8.1.

To keep backward compatibility with older python-keycloak versions, like
the one used in production, while ensuring support for recent ones we need
to ensure scope and state query parameters will be overridden if provided
in extra_params dict.

Details

Provenance
anlambertAuthored on Jul 15 2022, 2:56 PM
anlambertPushed on Jul 15 2022, 4:15 PM
Differential Revision
D8125: keycloak: Fix issue in authorization_url since python-keycloak 1.8.1
Parents
rDAUTHa5b0f4dc8e7c: django: Add support for Django 4.x
Branches
Unknown
Tags
Unknown
References
tag: v0.6.6
Build Status
Buildable 30434
Build 47575: test-and-buildJenkins console · Jenkins