IBM / python-sdk-core

The python-sdk-core repository contains core functionality required by Python code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
20 stars 27 forks source link

feat(IAM Authenticator): add support for optional 'scope' property #80

Closed jorge-ibm closed 4 years ago

jorge-ibm commented 4 years ago

The IAM /identity/token (get token) operation supports an optional "scope" form parameter which can be used to obtain an IAM access token having a limited set of scopes in this it can be used.

This commit adds support for the "Scope" field within the IamTokenManager class. If set, the value of this field is sent as the "scope" form param in the "get token" request body when obtaining an access token.

ref: https://github.ibm.com/arf/planning-sdk-squad/issues/2167

codecov[bot] commented 4 years ago

Codecov Report

Merging #80 into master will increase coverage by 0.02%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #80      +/-   ##
==========================================
+ Coverage   97.97%   98.00%   +0.02%     
==========================================
  Files          18       18              
  Lines         643      651       +8     
==========================================
+ Hits          630      638       +8     
  Misses         13       13              
Impacted Files Coverage Δ
ibm_cloud_sdk_core/get_authenticator.py 100.00% <ø> (ø)
...cloud_sdk_core/authenticators/iam_authenticator.py 96.87% <100.00%> (+0.20%) :arrow_up:
ibm_cloud_sdk_core/iam_token_manager.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d41c9d8...2e776c2. Read the comment docs.

ibm-devx-automation commented 4 years ago

:tada: This PR is included in version 3.2.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: