gitea.cli.utils.auth
auth
Utilities for authentication in the CLI.
Classes
Functions:
gitea.cli.utils.auth.get_auth_params
get_auth_params(
config_path: Path | str,
account_name: str | None,
token: str | None,
base_url: str | None,
) -> tuple[str, str]
Get authentication parameters from CLI context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config_path
|
Path | str
|
Path to the configuration file. |
required |
account_name
|
str | None
|
Name of the account to use for authentication. |
required |
token
|
str | None
|
Token for authentication. |
required |
base_url
|
str | None
|
Base URL of the Gitea platform. |
required |
Returns:
| Type | Description |
|---|---|
tuple[str, str]
|
A tuple containing the token and base URL for authentication. |