nvflare.fuel.hci.server.authz module¶
- class AuthorizationService[source]¶
Bases:
object
- static authorize(ctx: AuthzContext)[source]¶
- static initialize(authorizer: ~nvflare.fuel.sec.authz.Authorizer, policy_file: str = 'authorization.json') -> (<class 'nvflare.fuel.sec.authz.Authorizer'>, <class 'str'>)[source]¶
- static initialize_with_policy(authorizer: ~nvflare.fuel.sec.authz.Authorizer, policy_file_path: str) -> (<class 'nvflare.fuel.sec.authz.Authorizer'>, <class 'str'>)[source]¶
- the_authorizer = None¶
- class AuthzCommandModule(authorizer: Authorizer)[source]¶
Bases:
CommandModule
Authorization command module.
- Parameters
authorizer – instance of Authorizer
- eval_right(conn: Connection, args: List[str])[source]¶
- eval_rule(conn: Connection, args: List[str])[source]¶
- show_config(conn: Connection, args: List[str])[source]¶
- show_info(conn: Connection, args: List[str])[source]¶
- show_rights(conn: Connection, args: List[str])[source]¶
- show_rules(conn: Connection, args: List[str])[source]¶
- show_sites(conn: Connection, args: List[str])[source]¶
- show_users(conn: Connection, args: List[str])[source]¶
- class AuthzFilter(authorizer: Authorizer)[source]¶
Bases:
CommandFilter
Filter for authorization of admin commands.
- Parameters
authorizer – instance of Authorizer
- check_authz(authz_ctx, conn: Connection)[source]¶
- pre_command(conn: Connection, args: List[str])[source]¶
Code to execute before executing a command.
Returns: True to continue filter chain or False to not