ms_rest_azure 0.10.4 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: def20235f4da031c59b0b4639261aa3e46ba4e73
4
- data.tar.gz: aed68ba54b3ae17b309edc3aa7bed16fd2aa4bd9
3
+ metadata.gz: fd87b31d32c109bb780fa9d8e4ebd6426e6d8ace
4
+ data.tar.gz: cf26e052a77914c1d85e2b57d26846d9dff9a477
5
5
  SHA512:
6
- metadata.gz: e13f97fdeb769da2e259c5634ad7caffc483c7d3d1bd7fe2a57d85ad9d818b58489b6b7577191cd04ea2fc9de25ea7b7d90169f0d96e158c022405566275f6a5
7
- data.tar.gz: bcacd4fe74720998007fed9cadc8c7b25e02bc5771dbd224674cea6693dcfc2d0e930f148543d3284aaff370018094e36637fc55879ea35e8c92229984e9d879
6
+ metadata.gz: f1ad6a4be5429ffb61db400085b8a7aa03c78fffdadca69aeead3bb1b50b8c798ef1091ed1dbf7def6747ac13f769f00d8cea041509dc270161c3166e43c01c2
7
+ data.tar.gz: a93e5b47ee64e68d2f36078949fa7f754d69c1f8c203bb9a50b7f235d2c087c17972202bf1812f364aa54383d4f7ea6b280d6b7e88afefe52ea97aa950521441
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ##2018.04.16 ms_rest_azure version 0.10.5
2
+ * Added new error codes for IMDS Support for MSI Token Provider class. Refer [PR #1286](https://github.com/Azure/azure-sdk-for-ruby/pull/1286) and [Issue #1285](https://github.com/Azure/azure-sdk-for-ruby/issues/1285) for further details.
3
+
1
4
  ##2018.04.04 ms_rest_azure version 0.10.4
2
5
  * Added IMDS Support for MSI Token Provider class. Refer [PR #1282](https://github.com/Azure/azure-sdk-for-ruby/pull/1282) for further details.
3
6
 
data/README.md CHANGED
@@ -41,7 +41,7 @@ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.10.0'
41
41
  ```
42
42
  Don't forget to correct the version.
43
43
 
44
- # Utilizing MSI(Managed Service Identity) Token Provider
44
+ # Utilizing MSI(Managed Service Identity) Token Provider
45
45
 
46
46
  MSI support has been enabled in `ms_rest_azure` version `0.9.0`. Below code snippet demonstrates how to use MSITokenProvider with default port `50342`:
47
47
 
@@ -50,6 +50,12 @@ provider = MsRestAzure::MSITokenProvider.new()
50
50
  credentials = MsRest::TokenCredentials.new(provider)
51
51
  ```
52
52
 
53
+ **Note**: As of 04/04/2018, there are 2 supported ways to get MSI Token.
54
+ 1. Using the extension installed locally and accessing http://localhost:50342/oauth2/token to get the MSI Token
55
+ 2. Accessing the http://169.254.169.254/metadata/identity/oauth2/token to get the MSI Token (default)
56
+
57
+ Usually, you do not have to worry about the way you get the MSI token. If you would like to access the token specifically using the first approach, then set the environment variable 'MSI_VM' to true.
58
+
53
59
  # Utilizing Telemetry Extension in your SDK
54
60
 
55
61
  We encourage the customer of ms_rest_azure library to provide information about their product sent via telemetry extension point as below:
@@ -118,7 +118,7 @@ module MsRestAzure
118
118
  request.headers['User-Agent'] = "Azure-SDK-For-Ruby/ms_rest_azure/#{MsRestAzure::VERSION}"
119
119
  end
120
120
 
121
- if response.status == 429
121
+ if response.status == 429 || response.status == 404 || (response.status > 499 && response.status < 600)
122
122
  puts slots.inspect
123
123
  wait = slots[0..retry_value].sample
124
124
  wait = wait < 1 ? 3 : wait
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module MsRestAzure
6
- VERSION = '0.10.4'
6
+ VERSION = '0.10.5'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ms_rest_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.4
4
+ version: 0.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-04 00:00:00.000000000 Z
11
+ date: 2018-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,7 +142,7 @@ metadata:
142
142
  changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/runtime/ms_rest_azure/CHANGELOG.md
143
143
  documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
144
144
  homepage_uri: https://aka.ms/azure-sdk-for-ruby
145
- source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ms_rest_azure-v0.10.4
145
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ms_rest_azure-v0.10.5
146
146
  post_install_message:
147
147
  rdoc_options: []
148
148
  require_paths: