Class: OCI::Auth::Signers::RptPathProvider::ImdsRptPathProvider

Inherits:
RptPathProvider
  • Object
show all
Defined in:
lib/oci/auth/signers/resource_principal_token_path_provider/imds_rpt_path_provider.rb

Overview

imds rpt path provider

Instance Method Summary collapse

Methods inherited from RptPathProvider

#token_path

Constructor Details

#initialize(metadata_url) ⇒ ImdsRptPathProvider

Returns a new instance of ImdsRptPathProvider.



10
11
12
13
# File 'lib/oci/auth/signers/resource_principal_token_path_provider/imds_rpt_path_provider.rb', line 10

def initialize()
  @instance_id = OCI::Auth::Signers::RptPathProvider.instance_id_from_imds()
  super('/20180711/resourcePrincipalToken/{id}')
end

Instance Method Details

#replacement_dictObject



15
16
17
# File 'lib/oci/auth/signers/resource_principal_token_path_provider/imds_rpt_path_provider.rb', line 15

def replacement_dict
  { 'id' => @instance_id }
end