v8 -> v9
HTTP Basic Authentication Removed
HTTP Basic authentication is no longer supported. OAuth2 client credentials are now the only supported authentication method.
The username and password properties have been removed from Configuration and ConfigurationParameters. TypeScript code that sets them will no longer compile, and passing them to the Configuration constructor now throws an error at runtime:
Error: Basic authentication is no longer supported. Use `clientId` and `clientSecret` instead.
Replace your username and password with an OAuth2 client ID and secret. See Credentials Management for how to obtain them. The SDK fetches and refreshes the access token automatically.
- v8
- v9
const config = new Configuration({
username: BW_USERNAME,
password: BW_PASSWORD
});
const config = new Configuration({
clientId: BW_CLIENT_ID,
clientSecret: BW_CLIENT_SECRET
});