grid.auth.config¶
Module Contents¶
-
grid.auth.config.register_new_credentials(path: str) → UserAuthentication¶ Create a new credential if not found any credential file during load_credentials function.
Parameters: path (str) – File path. Returns: New credential instance. Return type: user (UserAuthentication)
-
grid.auth.config.read_authentication_configs(directory=None, folder=None) → list¶ Search for a path and folder used to store user credentials
Parameters: - directory (str) – System path (can usually be /home/<user>).
- folder (str) – folder name used to store PyGrid credentials.
Returns: List of credentials instances.
Return type: List
-
grid.auth.config.search_credential(user: str)¶ Search for a specific credential instance.
Parameters: user (str) – Key used to identify the credential. Returns: Credential’s instance. Return type: BaseAuthentication