Skip to main content

v18 -> v19

HTTP Basic Authentication Removed​

HTTP Basic authentication is no longer supported. OAuth2 client credentials are now the only supported authentication method for every API class.

Configuration#username= and Configuration#password= now raise an error, including when called inside Bandwidth.configure:

ArgumentError: HTTP basic authentication is no longer supported. Use client_id and client_secret instead.

Configuration#username and Configuration#password now always return nil, and Configuration#basic_auth_token has been removed.

Replace your username and password with an OAuth2 client ID and secret. See Credentials Management for how to obtain them.

Bandwidth.configure do |config|
config.client_id = 'YOUR_CLIENT_ID'
config.client_secret = 'YOUR_CLIENT_SECRET'
end