lib/oci/base_signer.rb
def inject_authorization_header(headers, method, signature, operation_signing_strategy)
      header_mapping = fetch_header_mapping(method, operation_signing_strategy)

      signed_headers = header_mapping.map(&:to_s).join(' ')
      headers[:authorization] = [
        %(Signature headers="#{signed_headers}"),
        %(keyId="#{@key_id}"),
        %(algorithm="rsa-sha256"),
        %(signature="#{signature}"),
        %(version="#{SIGNATURE_VERSION}")
      ].join(',')
    end
# enum to define the signing strategy
enum to define the signing strategy
enum to define the signing strategy
def inject_authorization_header(headers, method, signature, operation_signing_strategy)
      header_mapping = fetch_header_mapping(method, operation_signing_strategy)
      signed_headers = header_mapping.map(&:to_s).join(' ')
      headers[:authorization] = [
        %(Signature headers="#{signed_headers}"),
        %(keyId="#{@key_id}"),
        %(algorithm="rsa-sha256"),
        %(signature="#{signature}"),
        %(version="#{SIGNATURE_VERSION}")
      ].join(',')
    end
def inject_authorization_header ( headers , method , signature , operation_signing_strategy ) header_mapping = fetch_header_mapping ( method , operation_signing_strategy ) signed_headers = header_mapping . map ( & :to_s ) . join ( ' ' ) headers [ :authorization ] = [ %(Signature headers="#{signed_headers}") , %(keyId="#{@key_id}") , %(algorithm="rsa-sha256") , %(signature="#{signature}") , %(version="#{SIGNATURE_VERSION}") ] . join ( ',' ) end
enum to define the signing strategy
enum to define the signing strategy
headers
method
signature
operation_signing_strategy