Skip to main content

authn

Authentication commands for Datalayer CLI - Refactored to use Client.

def auth_callback(ctx: typer.models.Context) -> None

Authentication commands.

def login(run_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b35d10>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b34f50>, token: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b360d0>, handle: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b37190>, password: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b53b10>, no_browser: bool = <typer.models.OptionInfo object at 0x7f0f78b50210>) -> None

Log into a Datalayer server using Client authentication.

Examples

Token authentication::

datalayer login --token YOUR_TOKEN

Credentials authentication::

datalayer login --handle user@example.com --password secret

Browser OAuth (default)::

datalayer login

CLI-only mode::

datalayer login --no-browser

def logout(run_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b50b90>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b53890>) -> None

Log out from Datalayer server.

def whoami(run_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b51410>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b52010>, token: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b50bd0>, details: bool = <typer.models.OptionInfo object at 0x7f0f78b51d50>) -> None

Show current authenticated user.

def login_root(run_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b53f50>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b534d0>, token: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b51110>, handle: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b521d0>, password: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b53810>, no_browser: bool = <typer.models.OptionInfo object at 0x7f0f78b53dd0>) -> None

Log into a Datalayer server.

def logout_root(run_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b52490>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b52290>) -> None

Log out of Datalayer server.

def whoami_root(run_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b52d10>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b51450>, token: Optional[str] = <typer.models.OptionInfo object at 0x7f0f78b51290>, details: bool = <typer.models.OptionInfo object at 0x7f0f78b51710>) -> None

Show current authenticated user.