Class: Aws::Plugins::Sign::Bearer Private
- Inherits:
- 
      Object
      
        - Object
- Aws::Plugins::Sign::Bearer
 
- Defined in:
- lib/aws-sdk-core/plugins/sign.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ Bearer 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    A new instance of Bearer. 
- #presign_url(*args) ⇒ Object private
- #sign(context) ⇒ Object private
- #sign_event(*args) ⇒ Object private
Constructor Details
#initialize ⇒ Bearer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Bearer.
| 67 68 | # File 'lib/aws-sdk-core/plugins/sign.rb', line 67 def initialize end | 
Instance Method Details
#presign_url(*args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
| 84 85 86 | # File 'lib/aws-sdk-core/plugins/sign.rb', line 84 def presign_url(*args) raise ArgumentError, 'Bearer auth does not support presigned urls' end | 
#sign(context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
| 70 71 72 73 74 75 76 77 78 79 80 81 82 | # File 'lib/aws-sdk-core/plugins/sign.rb', line 70 def sign(context) if context.http_request.endpoint.scheme != 'https' raise ArgumentError, 'Unable to use bearer authorization on non https endpoint.' end token_provider = context.config.token_provider raise Errors::MissingBearerTokenError unless token_provider&.set? context.http_request.headers['Authorization'] = "Bearer #{token_provider.token.token}" end | 
#sign_event(*args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
| 88 89 90 | # File 'lib/aws-sdk-core/plugins/sign.rb', line 88 def sign_event(*args) raise ArgumentError, 'Bearer auth does not support event signing' end |