fix: bad import
gitea/authentic2-wallonie-connect/pipeline/head This commit looks good Details

This commit is contained in:
Benoit Suttor 2023-04-04 10:21:55 +02:00
parent d3119cd2a4
commit 615127a365
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import json
from django.db import transaction
from authentic2_idp_oidc.models import OIDCClient, OIDCClaim, generate_uuid, AUTHORIZATION_MODE_NONE
from authentic2_idp_oidc.models import OIDCClient, OIDCClaim, generate_uuid
from authentic2.a2_rbac.models import Role, OrganizationalUnit
from authentic2.custom_user.models import User
@ -140,7 +140,7 @@ class Command(BaseCommand):
"authorization_flow", OIDCClient.FLOW_AUTHORIZATION_CODE
)
assert isinstance(authorization_flow, int)
authorization_mode = AUTHORIZATION_MODE_NONE
authorization_mode = OIDCClient.AUTHORIZATION_MODE_NONE
idtoken_algo = OIDCClient.ALGO_HMAC
if "idtoken_algo" in service:
idtoken_algo = getattr(