From 464d4b2936ad4b1e9a17490a1ad38f428ba2ffaa Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Wed, 22 Feb 2017 17:20:28 +0000 Subject: [PATCH] fix noop principal retriever to work with the new auth scheme --- src/python/dm/common/service/auth/noOpPrincipalRetriever.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python/dm/common/service/auth/noOpPrincipalRetriever.py b/src/python/dm/common/service/auth/noOpPrincipalRetriever.py index d5066644..45f7d9fe 100755 --- a/src/python/dm/common/service/auth/noOpPrincipalRetriever.py +++ b/src/python/dm/common/service/auth/noOpPrincipalRetriever.py @@ -14,6 +14,8 @@ class NoOpPrincipalRetriever(AuthorizationPrincipalRetriever): # Set password to be the same as username noOpPassword = CryptUtility.cryptPasswordWithPbkdf2(username) principal = AuthorizationPrincipal(name=username, token=noOpPassword) + principal.setUserSystemRoleDict({dmRole.DM_ADMIN_SYSTEM_ROLE_ID:[]}) + principal.setUserExperimentRoleDict({}) self.setAuthorizationPrincipalSessionRole(principal) return principal -- GitLab