Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Azure Regions #47

Merged
merged 3 commits into from
Sep 27, 2018
Merged

Add Azure Regions #47

merged 3 commits into from
Sep 27, 2018

Conversation

srvrguy
Copy link
Collaborator

@srvrguy srvrguy commented Jul 3, 2018

These commits add the ability to select from one of Microsoft's Azure National Clouds for authentication. It also migrates from the Azure Graph API to the Microsoft Graph API to support all the regions.

The endpoint URLs for login and graph were gathered from https://developer.microsoft.com/en-us/graph/docs/concepts/deployments.

Testing was done as best as possible, but I don't have any accounts in the national clouds to fully verify the flow works 100%.

Fixes #43

Change the Graph API from the Azure AD Graph to the Microsoft Graph endpoint. This will future-proof the code, as Microsoft has deprecated Azure AD Graph.
Change Graph URL usages to a getter rather than using the string constants directly.
Add configuration option to allow user to select a “national cloud” to login against. Adjust methods to use the new settings. Update tests to cover the new and updated code.
@srvrguy
Copy link
Collaborator Author

srvrguy commented Jul 3, 2018

As a note, the settings for the plugin need some serious cleanup and organizing, but I felt that this PR was not a good place to make these changes.

@hkamel hkamel merged commit 8043db8 into hkamel:master Sep 27, 2018
@srvrguy srvrguy deleted the azure-regions branch September 28, 2018 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants