Skip to content
Snippets Groups Projects
Commit 464d4b29 authored by sveseli's avatar sveseli
Browse files

fix noop principal retriever to work with the new auth scheme

parent 2f38c230
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment