File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/GDAP Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ function Invoke-ExecGDAPInvite {
1111 $APIName = $Request.Params.CIPPEndpoint
1212 $Headers = $Request.Headers
1313
14-
15-
1614 $Action = $Request.Body.Action ?? $Request.Query.Action ?? ' Create'
1715 $InviteId = $Request.Body.InviteId
1816 $Reference = $Request.Body.Reference
@@ -23,8 +21,8 @@ function Invoke-ExecGDAPInvite {
2321 $user = $headers .' x-ms-client-principal'
2422 $Technician = ([System.Text.Encoding ]::UTF8.GetString([System.Convert ]::FromBase64String($user )) | ConvertFrom-Json ).userDetails
2523 } elseif ($Headers .' x-ms-client-principal-idp' -eq ' aad' ) {
26- $Table = Get-CIPPTable - TableName ' ApiClients'
27- $Client = Get-CIPPAzDataTableEntity @Table - Filter " RowKey eq '$ ( $headers .' x-ms-client-principal-name' ) '"
24+ $ApiClientTable = Get-CIPPTable - TableName ' ApiClients'
25+ $Client = Get-CIPPAzDataTableEntity @ApiClientTable - Filter " RowKey eq '$ ( $headers .' x-ms-client-principal-name' ) '"
2826 $Technician = $Client.AppName ?? ' CIPP-API'
2927 } else {
3028 try {
You can’t perform that action at this time.
0 commit comments