Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.2k stars 210 forks source link

Fix #59 Adding support for Azure Government in Get-TenantDomains #84

Closed jelliott7 closed 2 months ago

jelliott7 commented 3 months ago

This PR partially resolves #59 and might close it too.

Main goal is to provide full feature parity for AADInternal's killchain functions as an outsider (OSINT).

The Get-TenantDomains function in AccessToken_utils.ps1 now parses first the well-known openId configuration to grab the appropriate tenant region and tenant region sub-scope. Then the URI for the exchange AutoDiscover service endpoints are appropriately adjusted based on the detected region/sub-region of the tenant.

This enables the Get-TenantDomains function to know work with the following clouds:

Endpoints not addressed by this PR: