Class: Aws::SSOTokenProvider
- Inherits:
-
Object
- Object
- Aws::SSOTokenProvider
- Includes:
- TokenProvider
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-core/sso_token_provider.rb
Instance Attribute Summary collapse
-
#client ⇒ SSOOIDC::Client
readonly
Attributes included from TokenProvider
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SSOTokenProvider
constructor
A new instance of SSOTokenProvider.
Methods included from TokenProvider
Constructor Details
#initialize(options = {}) ⇒ SSOTokenProvider
Returns a new instance of SSOTokenProvider.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/sso_token_provider.rb', line 30 def initialize( = {}) missing_keys = SSO_REQUIRED_OPTS.select { |k| [k].nil? } unless missing_keys.empty? raise ArgumentError, "Missing required keys: #{missing_keys}" end @sso_session = .delete(:sso_session) @sso_region = .delete(:sso_region) [:region] = @sso_region [:credentials] = nil [:token_provider] = nil @client = [:client] || Aws::SSOOIDC::Client.new() super end |
Instance Attribute Details
#client ⇒ SSOOIDC::Client (readonly)
49 50 51 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/sso_token_provider.rb', line 49 def client @client end |