Revert "idp_oidc: add api access and profile […] (#71820)" (#71890)

This reverts commit 9141583b58.

The (erroneously added) parameters are for Publik's out-of-spec
synchronization purposes, they shouldn't appear on the vanilla OIDC
client configuration interface.
This commit is contained in:
Paul Marillonnet 2022-11-30 16:49:39 +01:00
parent d62d23203f
commit 97a5ebf63a
2 changed files with 0 additions and 6 deletions

View File

@ -38,8 +38,6 @@ class OIDCClientForm(SlugMixin, forms.ModelForm):
'authorization_mode',
'authorization_flow',
'home_url',
'has_api_access',
'activate_user_profiles',
'colour',
'logo',
]

View File

@ -37,15 +37,11 @@ def test_add_oidc_service(app):
form = resp.form
form['name'] = 'Test'
form['redirect_uris'] = 'http://example.com'
form['has_api_access'] = True
form['activate_user_profiles'] = True
resp = form.submit()
assert OIDCClient.objects.count() == 1
assert OIDCClaim.objects.count() == len(oidc_app_settings.DEFAULT_MAPPINGS)
oidc_client = OIDCClient.objects.get()
assert oidc_client.has_api_access is True
assert oidc_client.activate_user_profiles is True
assert resp.location == f'/manage/services/{oidc_client.pk}/'
resp = resp.follow()
assert "Settings" in resp.text