Skip to content

Commit

Permalink
fix(authentication) Apply correct defaults for username / password
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRataplan committed Oct 29, 2024
1 parent 7793bf7 commit f1dd2ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utility/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export function readConnection (argv) {
return argv
}
const connectionOptions = readOptionsFromEnv()

// Apply our defaults: XST usually requires admin privileges. the guest user node_exist defaults
// to is usually not sufficient (and often does not exist)
connectionOptions.basic_auth = { user: 'admin', pass: '', ...connectionOptions.basic_auth }

argv.connectionOptions = connectionOptions
return argv
}
Expand Down

0 comments on commit f1dd2ae

Please sign in to comment.