Skip to content

Commit

Permalink
Merge pull request #4908 from NikCharlebois/Clean-Up
Browse files Browse the repository at this point in the history
Removed unused variable
  • Loading branch information
NikCharlebois committed Jul 18, 2024
2 parents 0fb962b + 555ee47 commit d8a1816
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Modules/Microsoft365DSC/Modules/M365DSCPermissions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,6 @@ function Update-M365DSCAzureAdApplication
$username = $Credential.UserName
$password = $Credential.GetNetworkCredential().password

$url = "https://main.iam.ad.ext.azure.com/api/Directories/$($tenant.tenantId)/Details"
$uri = 'https://login.microsoftonline.com/{0}/oauth2/token' -f $tenantid
$body = 'resource=74658136-14ec-4630-ad9b-26e160ff0fc6&client_id=1950a258-227b-4e31-a9cf-717495945fc2&grant_type=password&username={1}&password={0}' -f [System.Web.HttpUtility]::UrlEncode($password), $username
$token = Invoke-RestMethod $uri `
Expand Down

0 comments on commit d8a1816

Please sign in to comment.