Skip to content

Commit

Permalink
Pass authentication token when opening ws console. Ref #1468
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Oct 22, 2023
1 parent 76f2314 commit dbcb8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/nodeConsole.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class NodeConsoleService {
protocol = "wss"
}

return `${protocol}://${controller.host}:${controller.port}/${environment.current_version}/projects/${node.project_id}/nodes/${node.node_id}/console/ws`
return `${protocol}://${controller.host}:${controller.port}/${environment.current_version}/projects/${node.project_id}/nodes/${node.node_id}/console/ws?token=${controller.authToken}`
}

openConsolesForAllNodesInWidget(nodes: Node[]) {
Expand Down

0 comments on commit dbcb8a8

Please sign in to comment.