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 0x7f849ea74450>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f849ea74350>, token: Optional[str] = <typer.models.OptionInfo object at 0x7f849ea742d0>, handle: Optional[str] = <typer.models.OptionInfo object at 0x7f849ea57650>, password: Optional[str] = <typer.models.OptionInfo object at 0x7f849ea57750>, no_browser: bool = <typer.models.OptionInfo object at 0x7f849ec1afd0>) -> 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 0x7f849ec195d0>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec18490>) -> None

Log out from Datalayer server.

def whoami(run_url: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec19750>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec1b310>, token: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec18f90>, details: bool = <typer.models.OptionInfo object at 0x7f849ec189d0>) -> None

Show current authenticated user.

def login_root(run_url: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec1bed0>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec1b9d0>, token: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec1b790>, handle: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec1b5d0>, password: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec19b10>, no_browser: bool = <typer.models.OptionInfo object at 0x7f849ec1b990>) -> None

Log into a Datalayer server.

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

Log out of Datalayer server.

def whoami_root(run_url: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec1a250>, iam_url: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec1a610>, token: Optional[str] = <typer.models.OptionInfo object at 0x7f849ec1bcd0>, details: bool = <typer.models.OptionInfo object at 0x7f849ec1b510>) -> None

Show current authenticated user.