Sha256: 863f321a7c536c656a24c19b7383a1cb49de62b174cfc0acd318b4e5ba29c797
Contents?: true
Size: 690 Bytes
Versions: 32
Compression:
Stored size: 690 Bytes
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). require 'base64' module Bandwidth # Utility class for basic authorization. class WebRtcBasicAuth # Add basic authentication to the request. # @param [HttpRequest] The HttpRequest object to which authentication will # be added. def self.apply(config, http_request) username = config.web_rtc_basic_auth_user_name password = config.web_rtc_basic_auth_password value = Base64.strict_encode64("#{username}:#{password}") header_value = "Basic #{value}" http_request.headers['Authorization'] = header_value end end end
Version data entries
32 entries across 32 versions & 1 rubygems