admin is the only object that unlogged-in clients can access. It holds any methods that are needed to log in.

Hierarchy

Constructors

Properties

NAME: string = "Admin"
VERSION: number = 4
_transport: Transport
NAME: string = "Admin"
VERSION: number = 4

Methods

  • Login logs in with the provided credentials. All subsequent requests on the connection will act as the authenticated user.

    Parameters

    Returns Promise<LoginResult>

  • LoginWithSessionCookie logs in if the session cookie exists when the websocket connection is made. All subsequent requests on the connection will act as the authenticated user.

    Returns Promise<LoginResult>

  • RedirectInfo returns redirected host information for the model. In Juju it always returns an error because the Juju controller does not multiplex controllers.

    Parameters

    • params: any

    Returns Promise<RedirectInfoResult>

Generated using TypeDoc