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.



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

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

Instance Method Details

#replacement_dictObject



17
18
19
# File 'lib/oci/auth/signers/resource_principal_token_path_provider/imds_rpt_path_provider.rb', line 17

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