Skip to content

Commit

Permalink
Fixing bug in authentication method in Conda-Store authentication (#1396
Browse files Browse the repository at this point in the history
)

Fixes #1394
  • Loading branch information
costrouc committed Aug 17, 2022
1 parent 514d52a commit 12acb31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def conda_store_config(path="/var/lib/conda-store/config.json"):


class KeyCloakAuthentication(GenericOAuthAuthentication):
def authenticate(self, request):
async def authenticate(self, request):
# 1. using the callback_url code and state in request
oauth_access_token = self._get_oauth_token(request)
if oauth_access_token is None:
Expand Down Expand Up @@ -114,7 +114,7 @@ def authenticate(self, request):
namespaces.add(group_name)
role_bindings[f"{group_name}/*"] = roles

conda_store = get_conda_store()
conda_store = get_conda_store(request)
for namespace in namespaces:
_namespace = api.get_namespace(conda_store.db, name=namespace)
if _namespace is None:
Expand Down

0 comments on commit 12acb31

Please sign in to comment.