Class: Inferno::DSL::OAuthCredentials

Inherits:
Object
  • Object
show all
Defined in:
lib/inferno/dsl/oauth_credentials.rb

Overview

OAuthCredentials provide a user with a single input which allows a fhir client to use a bearer token and automatically refresh the token when it expires.

Constant Summary collapse

ATTRIBUTES =
[
  :access_token,
  :refresh_token,
  :token_url,
  :client_id,
  :client_secret,
  :token_retrieval_time,
  :expires_in,
  :name
].freeze

Instance Attribute Summary collapse

Instance Attribute Details

#access_tokenObject



# File 'lib/inferno/dsl/oauth_credentials.rb', line 24

#clientObject

Returns the value of attribute client.



22
23
24
# File 'lib/inferno/dsl/oauth_credentials.rb', line 22

def client
  @client
end

#client_idObject



# File 'lib/inferno/dsl/oauth_credentials.rb', line 24

#client_secretObject



# File 'lib/inferno/dsl/oauth_credentials.rb', line 24

#expires_inObject



# File 'lib/inferno/dsl/oauth_credentials.rb', line 24

#nameObject



# File 'lib/inferno/dsl/oauth_credentials.rb', line 24

#refresh_tokenObject



# File 'lib/inferno/dsl/oauth_credentials.rb', line 24

#token_retrieval_timeObject



# File 'lib/inferno/dsl/oauth_credentials.rb', line 24

#token_urlObject



# File 'lib/inferno/dsl/oauth_credentials.rb', line 24