diff --git a/ui/src/ui/gateway.ts b/ui/src/ui/gateway.ts index 6f628b619ab..62f164fb149 100644 --- a/ui/src/ui/gateway.ts +++ b/ui/src/ui/gateway.ts @@ -242,7 +242,13 @@ export class GatewayBrowserClient { // Gateways may reject this unless gateway.controlUi.allowInsecureAuth is enabled. const isSecureContext = typeof crypto !== "undefined" && !!crypto.subtle; - const scopes = ["operator.admin", "operator.approvals", "operator.pairing"]; + const scopes = [ + "operator.admin", + "operator.read", + "operator.write", + "operator.approvals", + "operator.pairing", + ]; const role = "operator"; const explicitGatewayToken = this.opts.token?.trim() || undefined; const explicitPassword = this.opts.password?.trim() || undefined;