相关疑难解决方法(0)

Azure 广告应用程序 - 以编程方式更新清单

我试图找到一种方法来使用 json 文件通过 powershell 更新 Azure Ad 注册应用程序的清单。

Json 文件包含所有应用程序角色,我想简单地将应用程序角色:[] 注入应用程序角色括号中

有没有办法通过电源外壳或 CLI 实现这一点?

json azure azure-active-directory azure-ad-powershell-v2 azure-webapps

6
推荐指数
2
解决办法
4877
查看次数

如何使用Powershell脚本在Azure Active Directory中的清单下添加应用程序角色

我已经手动创建了Azure Active Directory应用程序。我想添加用户并通过PowerShell脚本分配用户角色。

我能够使用PowerShell脚本添加用户,但无法在Azure活动目录应用程序的清单下添加应用程序角色。

是否可以通过PowerShell脚本添加应用程序角色?

powershell azure azure-active-directory

4
推荐指数
1
解决办法
1810
查看次数

有没有一种方法可以保护只能从特定Azure Logic应用程序调用的Azure功能?

I understand that Azure Functions are potentially open endpoints on the internet if I read Microsoft’s documentation correctly and per conversations with a friend who has some experience working with web development paradigms that Azure Functions leverages. A cursory reading of security forums and stack overflow questions on the topic leads me to understand at least a couple options of securing them namely

  1. Azure Active Directory
  2. Shared Access Signatures (SAS) and
  3. Azure Virtual Networks.

Context/ What does my Azure …

security azure azure-active-directory azure-logic-apps azure-functions

4
推荐指数
1
解决办法
1133
查看次数

如何通过Azure AD检查用户是否在AD组中?

设置规格

  • .NET 4.5.1 MVC项目
  • 项目包含.aspx文件(旧版)
  • 当前,用户Azure AD通过Cookie进行身份验证。
  • Azure门户(通过应用程序注册)配置为“隐式授予-ID令牌”和“仅此组织目录中的帐户”
  • 本地AD组被上推到Azure AD。

Startup.cs配置

// COOKIES: Tells it to use cookies for authentication.
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
app.UseCookieAuthentication(new CookieAuthenticationOptions()
{
    CookieManager = new SystemWebCookieManager()
});

app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions()
{
    ClientId = ClientID,
    Authority = Authority,
    PostLogoutRedirectUri = PostLogoutRedirectUri,
    Notifications = new OpenIdConnectAuthenticationNotifications()
    {
        AuthenticationFailed = PrincipalService.OnAzureAuthenticationFailure,
        AuthorizationCodeReceived = (AuthorizationCodeReceivedNotification notification) =>
        {
            var username = notification.AuthenticationTicket.Identity.Name.Split('#').LastOrDefault();
            var emailAddress = notification.AuthenticationTicket.Identity.Claims.FirstOrDefault(x => x.Type.Contains("emailaddress"))?.Value;
            Logger.Log(Level.Auth, $"Azure login success! Username: '{username}' Email: '{emailAddress}'.");
            return Task.FromResult(0);
        }
    }
});
Run Code Online (Sandbox Code Playgroud)

在进行此设置后,如何检查当前登录的用户是否在特定的AD组中? …

azure-active-directory microsoft-graph

1
推荐指数
1
解决办法
587
查看次数