Class: Aws::SSOTokenProvider
- Inherits:
-
Object
- Object
- Aws::SSOTokenProvider
- Includes:
- RefreshingToken, TokenProvider
- Defined in:
- lib/aws-sdk-core/sso_token_provider.rb
Constant Summary collapse
- SSO_REQUIRED_OPTS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[:sso_region, :sso_session].freeze
- SSO_LOGIN_GUIDANCE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'The SSO session associated with this profile has '\ 'expired or is otherwise invalid. To refresh this SSO session run '\ 'aws sso login with the corresponding profile.'.freeze
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 RefreshingToken
#expiration, #refresh!, #token
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 '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 'lib/aws-sdk-core/sso_token_provider.rb', line 49 def client @client end |