Projet

Général

Profil

0001-Revert-idp_oidc-add-api-access-and-profile-71820-718.patch

Paul Marillonnet, 30 novembre 2022 17:00

Télécharger (2,07 ko)

Voir les différences:

Subject: [PATCH] =?UTF-8?q?Revert=20"idp=5Foidc:=20add=20api=20access=20an?=
 =?UTF-8?q?d=20profile=20[=E2=80=A6]=20(#71820)"=20(#71890)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This reverts commit 9141583b582d98f1b59003fe0b0e8b33246d38b2.

The (erroneously added) parameters are for Publik's out-of-spec
synchronization purposes, they shouldn't appear on the vanilla OIDC
client configuration interface.
 src/authentic2_idp_oidc/manager/forms.py | 2 --
 tests/idp_oidc/test_manager.py           | 4 ----
 2 files changed, 6 deletions(-)
src/authentic2_idp_oidc/manager/forms.py
38 38
            'authorization_mode',
39 39
            'authorization_flow',
40 40
            'home_url',
41
            'has_api_access',
42
            'activate_user_profiles',
43 41
            'colour',
44 42
            'logo',
45 43
        ]
tests/idp_oidc/test_manager.py
37 37
    form = resp.form
38 38
    form['name'] = 'Test'
39 39
    form['redirect_uris'] = 'http://example.com'
40
    form['has_api_access'] = True
41
    form['activate_user_profiles'] = True
42 40
    resp = form.submit()
43 41

  
44 42
    assert OIDCClient.objects.count() == 1
45 43
    assert OIDCClaim.objects.count() == len(oidc_app_settings.DEFAULT_MAPPINGS)
46 44
    oidc_client = OIDCClient.objects.get()
47
    assert oidc_client.has_api_access is True
48
    assert oidc_client.activate_user_profiles is True
49 45
    assert resp.location == f'/manage/services/{oidc_client.pk}/'
50 46
    resp = resp.follow()
51 47
    assert "Settings" in resp.text
52
-