fix: get OIDCClient do not return 2 object
This commit is contained in:
parent
de0e3221b4
commit
30efabda0a
|
@ -247,10 +247,9 @@ class Command(BaseCommand):
|
|||
if not created and verified_source_app_role.slug != slug:
|
||||
access_role.name = verified_source_app_slug
|
||||
access_role.save()
|
||||
(
|
||||
verified_source_app_oidc_client,
|
||||
created,
|
||||
) = OIDCClient.objects.get(slug=f"imio-{verified_source_app}")
|
||||
verified_source_app_oidc_client = OIDCClient.objects.get(
|
||||
slug=f"imio-{verified_source_app}"
|
||||
)
|
||||
if (
|
||||
access_role
|
||||
not in verified_source_app_oidc_client.authorized_roles.all()
|
||||
|
|
Loading…
Reference in New Issue