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
未关闭
- 主要语言
- PowerShell
- 星标
- 75
- 派生
- 65
- PR 合并指标
- 30 天内没有已合并 PR
描述
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)
```
贡献指南
调研方向
打开 Configure.ps1,检查 New-MgApplicationOwnerByRef 附近的所有者检查。将当前的 null 检查与 issue 要求的行为进行比较,然后验证当 owner 为 null 时,脚本不再采用错误的所有者分配路径。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- powershell
- 领域
- authentication
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100