Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7d0a502

Browse files
committed
Avoid requests in recents without required token
Currently this results with a 401, and that humanizes to "token wasrejected" but that is not quite right.
1 parent7b1bcda commit7d0a502

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/main/kotlin/com/coder/gateway/views/CoderGatewayRecentWorkspaceConnectionsView.kt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
376376
settings.token(deploymentURL.toURL())?.first,
377377
)
378378

379+
if (client.token==null&& settings.requireTokenAuth) {
380+
throwException("Unable to make request; token was not found in CLI config.")
381+
}
382+
379383
// Delete connections that have no workspace.
380384
val items= client.workspaces().flatMap { it.toAgentList() }
381385
connectionsByWorkspace.forEach { (name, connections)->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp