nvflare.security.security module

class CommandCategory[source]

Bases: object

MANAGE_JOB = 'manage_job'
OPERATE = 'operate'
SHELL_COMMANDS = 'shell_commands'
VIEW = 'view'
class EmptyAuthorizer[source]

Bases: Authorizer

Base class containing the authorization policy.

authorize(ctx: ~nvflare.fuel.sec.authz.AuthzContext) -> (<class 'bool'>, <class 'str'>)[source]
class FLAuthorizer(for_org: str, policy_config: dict)[source]

Bases: Authorizer

System-wide authorization class.

Examine if a user has certain rights on a specific site based on authorization.json file.