Skip to content

Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"#2410

Merged
derekbekoe merged 2 commits intoAzure:api-profile-supportfrom
derekbekoe:fix-token-endpoint
Mar 10, 2017
Merged

Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"#2410
derekbekoe merged 2 commits intoAzure:api-profile-supportfrom
derekbekoe:fix-token-endpoint

Conversation

@derekbekoe
Copy link
Copy Markdown
Member

Closes #2266

@derekbekoe derekbekoe requested a review from yugangw-msft March 8, 2017 06:11
@derekbekoe derekbekoe changed the base branch from master to api-profile-support March 8, 2017 06:15
@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 8, 2017

Codecov Report

Merging #2410 into api-profile-support will not change coverage.
The diff coverage is 100%.

@@                 Coverage Diff                  @@
##           api-profile-support    #2410   +/-   ##
====================================================
  Coverage                72.34%   72.34%           
====================================================
  Files                      325      325           
  Lines                    18311    18311           
  Branches                  2707     2707           
====================================================
  Hits                     13248    13248           
+ Misses                    4230     4228    -2     
- Partials                   833      835    +2
Impacted Files Coverage Δ
src/azure-cli-core/azure/cli/core/_profile.py 83.78% <100%> (ø)
src/azure-cli-core/azure/cli/core/_util.py 66.66% <0%> (ø)
...dback/azure/cli/command_modules/feedback/custom.py 34.69% <0%> (ø)

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 bf7c56f...f674047. Read the comment docs.

@yugangw-msft
Copy link
Copy Markdown
Contributor

Let us chat. We used this end point for the reason that the token could be picked up by xplat-cli for ASM command, so if possible I would like see workaround from stack side

@derekbekoe
Copy link
Copy Markdown
Member Author

@yugangw-msft look good to you?
On Public Azure, management endpoint is the same as active_directory_resource_id.

@yugangw-msft
Copy link
Copy Markdown
Contributor

@derekbekoe , sorry for the delay, I just forgot to approve it.,

@derekbekoe derekbekoe merged this pull request into Azure:api-profile-support Mar 10, 2017
@derekbekoe derekbekoe deleted the fix-token-endpoint branch March 10, 2017 21:19
derekbekoe added a commit that referenced this pull request Mar 16, 2017
…DirectoryResourceId" (#2410)

* Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"

* Modify one more occurrence
derekbekoe added a commit that referenced this pull request Mar 17, 2017
…DirectoryResourceId" (#2410)

* Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"

* Modify one more occurrence
derekbekoe added a commit that referenced this pull request Mar 21, 2017
…DirectoryResourceId" (#2410)

* Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"

* Modify one more occurrence
derekbekoe added a commit to derekbekoe/azure-cli that referenced this pull request Mar 27, 2017
…DirectoryResourceId" (Azure#2410)

* Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"

* Modify one more occurrence
derekbekoe added a commit that referenced this pull request Apr 4, 2017
…DirectoryResourceId" (#2410)

* Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"

* Modify one more occurrence
derekbekoe added a commit that referenced this pull request Apr 7, 2017
…DirectoryResourceId" (#2410)

* Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"

* Modify one more occurrence
derekbekoe added a commit that referenced this pull request Apr 7, 2017
…DirectoryResourceId" (#2410)

* Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"

* Modify one more occurrence
derekbekoe added a commit that referenced this pull request Apr 10, 2017
…DirectoryResourceId" (#2410)

* Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId"

* Modify one more occurrence
derekbekoe added a commit that referenced this pull request Apr 11, 2017
- Use published SDKs available on PyPI now
- Loading versioned models for network and resources, object model initialization changes for 2015-* profile (#2812)
- Custom ca certs - Setting Requests_ca_bundle environment variable (#2813)
- changes for 2015-* profile to work against azure stack  (#2794)
- Loading versioned Resources client and versioned models in VM
- Updating the supported api-versions for the 2015-example profile
- Fixing network, compute sdk load errors for 2015-* profiles (+5 squashed commit)
- Support multi-API versioned Storage dataplane SDK (#2796)
- Support multi-versioned mgmt SDK (#2526)
- Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId" (#2410)
- Add profile switching params and profile listing command (#2398)
- Use ARM 'resource manager' endpoint if ASM 'management' endpoint not set
@derekbekoe derekbekoe mentioned this pull request Apr 11, 2017
3 tasks
derekbekoe added a commit that referenced this pull request Apr 13, 2017
- Use published SDKs available on PyPI now
- Loading versioned models for network and resources, object model initialization changes for 2015-* profile (#2812)
- Custom ca certs - Setting Requests_ca_bundle environment variable (#2813)
- changes for 2015-* profile to work against azure stack  (#2794)
- Loading versioned Resources client and versioned models in VM
- Updating the supported api-versions for the 2015-example profile
- Fixing network, compute sdk load errors for 2015-* profiles (+5 squashed commit)
- Support multi-API versioned Storage dataplane SDK (#2796)
- Support multi-versioned mgmt SDK (#2526)
- Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId" (#2410)
- Add profile switching params and profile listing command (#2398)
- Use ARM 'resource manager' endpoint if ASM 'management' endpoint not set
derekbekoe added a commit that referenced this pull request Apr 14, 2017
* API Profile Support

- Use published SDKs available on PyPI now
- Loading versioned models for network and resources, object model initialization changes for 2015-* profile (#2812)
- Custom ca certs - Setting Requests_ca_bundle environment variable (#2813)
- changes for 2015-* profile to work against azure stack  (#2794)
- Loading versioned Resources client and versioned models in VM
- Updating the supported api-versions for the 2015-example profile
- Fixing network, compute sdk load errors for 2015-* profiles (+5 squashed commit)
- Support multi-API versioned Storage dataplane SDK (#2796)
- Support multi-versioned mgmt SDK (#2526)
- Fix token "management" endpoint is being used in the place of "activeDirectoryResourceId" (#2410)
- Add profile switching params and profile listing command (#2398)
- Use ARM 'resource manager' endpoint if ASM 'management' endpoint not set

* Address code review feedback

Fix pylint and pep8 (+7 squashed commits)
Squashed commits:
[f1d4d52] Refactor to use joint method
[f43785a] Use generic method to get versioned SDK attributes
[2100dd2] Add log debug if enum default not found
[5767f41] Add single_placement_group back in for vmss
[05ca8bc] Revert a test change. It has been fixed in master.
[cdf4211] Simplify str override method
[281c755] Clarify use of getattr

* Fix patching the operation versions

* Fix wrong import

* Rename shared to _shared

* Add message to cloud debug message

* Remove public method ‘get_versioned_sdk_path’ from azure.cli.core.profiles

* Remove unused import

* Use setattr

* Add API version comparisons

* Add method docs

* Fix failing test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants