← Files Dell Agentic WorkspaceARCHIVED FILE

scripts/authenticate_devspaces.ps1

816 Bytes · Nov 14, 2026 · 01:37 UTC

↓ Download file

# SPDX-FileCopyrightText: Copyright (c) 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# Convenience wrapper; use the Python helper directly when .ps1 execution is blocked.
[CmdletBinding()]
param(
    [Parameter(Mandatory = $true)] [string] $ConnectorPath,
    [Parameter(Mandatory = $true)] [string] $ClusterUrl,
    [string] $PythonPath = 'python',
    [switch] $AllowInsecureTls,
    [switch] $PauseOnCompletion
)
$devspacesArguments = @(
    (Join-Path $PSScriptRoot 'authenticate_devspaces.py'),
    '--foreground', '--connector', $ConnectorPath, '--cluster', $ClusterUrl
)
if ($AllowInsecureTls) { $devspacesArguments += '--allow-insecure-tls' }
if ($PauseOnCompletion) { $devspacesArguments += '--pause' }
& $PythonPath @devspacesArguments
exit $LASTEXITCODE

SHA-256: 6b634c26a29b08bf8d3e83d10f392403c12ee1fd037253476f803897e0e8ec8b