Skip to content

Commit

Permalink
Merge pull request #613 from oliver-sanders/auth-tidy
Browse files Browse the repository at this point in the history
Auth tidy
  • Loading branch information
wxtim authored Jul 10, 2024
2 parents f6a05fc + 042f42e commit f42ebfa
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 201 deletions.
8 changes: 4 additions & 4 deletions cylc/uiserver/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,15 +542,15 @@ def set_sub_server(self):
auth=self.authobj,
)

def set_auth(self):
def set_auth(self) -> Authorization:
"""Create authorization object.
One for the lifetime of the UIServer.
"""
return Authorization(
getpass.getuser(),
self.config.CylcUIServer.user_authorization,
self.config.CylcUIServer.site_authorization,
self.log
self.config.CylcUIServer.user_authorization.to_dict(),
self.config.CylcUIServer.site_authorization.to_dict(),
self.log,
)

def initialize_templates(self):
Expand Down
Loading

0 comments on commit f42ebfa

Please sign in to comment.