Azure-Samples / Azure-Samples/ms-identity-ciam-javascript-tutorial
1-Authentication/6-sign-in-node-cli-app : Configure.ps1 script error - attempts to assign owner when owner is null
- Langage dominant
- PowerShell
- Étoiles
- 75
- Forks
- 65
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
original code:
```
if ($owner -eq $null)
{
New-MgApplicationOwnerByRef -ApplicationId $currentAppObjectId -BodyParameter @{"@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/$user.ObjectId"}
Write-Host "'$($user.UserPrincipalName)' added as an application owner to app '$($clientServicePrincipal.DisplayName)'"
}
```
should be
```
if ($owner -ne $null)
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Open Configure.ps1 and inspect the owner check around New-MgApplicationOwnerByRef. Compare the current null check with the issue's requested behavior, then verify that the script no longer takes the incorrect owner-assignment path when owner is null.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- powershell
- Domaine
- authentication
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100