You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`\x1b[32mConnected to \x1b[0m\x1b[4m${api.config.host}:${api.config.port}${api.config.pathPrefix}\x1b[0m\x1b[32m as \x1b[0m\x1b[3m${api.config.authorization.username}\x1b[0m\r\n`
228
+
`\x1b[32mConnected to \x1b[0m\x1b[4m${api.config.host}:${api.config.port}${api.config.pathPrefix}\x1b[0m\x1b[32m as \x1b[0m\x1b[3m${api.config.auth.username}\x1b[0m\r\n`
@@ -471,7 +474,7 @@ export async function checkConnection(
471
474
letsuccess=false;
472
475
message="Not Authorized.";
473
476
errorMessage=`Authorization error: Check your credentials in Settings, and that you have sufficient privileges on the /api/atelier web application on ${connInfo}`;
474
-
if(!api.config.authorization.resolved()){
477
+
if(!api.config.auth.resolved()){
475
478
vscode.window.showErrorMessage(
476
479
`Unauthenticated access rejected by '${api.serverId}'.${
477
480
!api.config.serverName ? " Connection has been disabled." : ""
@@ -515,7 +518,7 @@ export async function checkConnection(
515
518
vscode.window
516
519
.showInputBox({
517
520
password: true,
518
-
title: `Not Authorized. Enter password to connect as user '${api.config.authorization.username}' to ${connInfo}`,
521
+
title: `Not Authorized. Enter password to connect as user '${api.config.auth.username}' to ${connInfo}`,
519
522
prompt: !api.externalServer ? "If no password is entered the connection will be disabled." : "",
520
523
ignoreFocusOut: true,
521
524
})
@@ -1978,7 +1981,7 @@ function serverForUri(uri: vscode.Uri): ServerForUri {
1978
1981
port,
1979
1982
superserverPort,
1980
1983
pathPrefix,
1981
-
authorization,
1984
+
auth: authorization,
1982
1985
ns,
1983
1986
apiVersion,
1984
1987
serverVersion,
@@ -1997,7 +2000,7 @@ function serverForUri(uri: vscode.Uri): ServerForUri {
1997
2000
)
1998
2001
.get("password")asstring|undefined;
1999
2002
if(password!==undefined){
2000
-
authorization.resolve(password);
2003
+
authorization.resolve({accessToken: password});
2001
2004
}
2002
2005
}
2003
2006
return{
@@ -2008,7 +2011,7 @@ function serverForUri(uri: vscode.Uri): ServerForUri {
2008
2011
port,
2009
2012
superserverPort,
2010
2013
pathPrefix,
2011
-
authorization,
2014
+
auth: authorization,
2012
2015
namespace: ns,
2013
2016
apiVersion: active ? apiVersion : undefined,
2014
2017
serverVersion: active ? serverVersion : undefined,
} contents. If they do not have READ permission on the default code database of the ${api.config.ns.toUpperCase()} namespace then grant it and retry. If the problem remains then execute the following SQL in that namespace:\n\t GRANT EXECUTE ON %Library.RoutineMgr_StudioOpenDialog TO ${
482
-
api.config.authorization.username
482
+
api.config.auth.username
483
483
}`;
484
484
handleError(message);
485
485
}
@@ -1006,7 +1006,7 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
0 commit comments