feat: set authorization_mode to None to be able to get all users of a service from api
gitea/authentic2-wallonie-connect/pipeline/head There was a failure building this commit
Details
gitea/authentic2-wallonie-connect/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
c491008f38
commit
d3119cd2a4
|
@ -20,7 +20,7 @@ import json
|
|||
|
||||
from django.db import transaction
|
||||
|
||||
from authentic2_idp_oidc.models import OIDCClient, OIDCClaim, generate_uuid
|
||||
from authentic2_idp_oidc.models import OIDCClient, OIDCClaim, generate_uuid, AUTHORIZATION_MODE_NONE
|
||||
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
|
||||
idtoken_algo = OIDCClient.ALGO_HMAC
|
||||
if "idtoken_algo" in service:
|
||||
idtoken_algo = getattr(
|
||||
|
@ -162,6 +162,7 @@ class Command(BaseCommand):
|
|||
"redirect_uris": "\n".join(redirect_uris),
|
||||
"has_api_access": has_api_access,
|
||||
"identifier_policy": identifier_policy,
|
||||
"authorization_mode": authorization_mode,
|
||||
"authorization_flow": authorization_flow,
|
||||
"idtoken_algo": idtoken_algo,
|
||||
"scope": scope,
|
||||
|
@ -180,6 +181,7 @@ class Command(BaseCommand):
|
|||
"has_api_access",
|
||||
"idtoken_algo",
|
||||
"identifier_policy",
|
||||
"authorization_mode",
|
||||
"authorization_flow",
|
||||
"scope",
|
||||
):
|
||||
|
|
Loading…
Reference in New Issue