小编Jac*_*eng的帖子

Azure AD通过Azure CLI添加密钥

我正在尝试使用Azure CLI在Azure AD应用程序中添加密钥.但是看看Azure CLI API似乎没有这样的命令.

例如:

我正尝试通过Azure CLI从以下链接自动执行任务:http: //blog.davidebbo.com/2014/12/azure-service-principal.html

我可以创建AD应用程序,服务主体,但我找不到为新创建AD应用程序添加密钥的方法.

我会感谢任何想法和方向:)

提前致谢 !

azure azure-active-directory azure-cli azure-ad-graph-api

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

打开 Markdown 文件时,在 Visual Studio Code 中自动显示预览

我正在使用 VS Code 编辑 markdown 文件。但是,每次打开 Markdown 文件时,我都需要使用快捷键“ctrl+k v”将预览显示到侧面,这很烦人。

这是我的问题。有什么方法可以在打开 Markdown 文件后立即将预览放在一边吗?

我想添加一个任务也许能够实现这样的事情。但是,我对 VS Code 中的任务一点也不熟悉。

markdown visual-studio-code

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

阅读ASP.net中的Azure AD登录用户详细信息

我正在asp.net(VS 2013)中实现Azure AD登录。.
我已经成功创建了登录和注销部件。

我的登录和注销方法如下。

public partial class Startup
{      

    private static string clientId = ConfigurationManager.AppSettings["ida:ClientId"];

    private static string aadInstance = ConfigurationManager.AppSettings["ida:AADInstance"];

    private static string tenant = ConfigurationManager.AppSettings["ida:Tenant"];

    private static string postLogoutRedirectUri = ConfigurationManager.AppSettings["ida:PostLogoutRedirectUri"];

    string authority = String.Format(CultureInfo.InvariantCulture, aadInstance, tenant);

    public void ConfigureAuth(IAppBuilder app)
    {
        app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);

        app.UseCookieAuthentication(new CookieAuthenticationOptions());

        app.UseOpenIdConnectAuthentication(
            new OpenIdConnectAuthenticationOptions
            {
                ClientId = clientId,
                Authority = authority,
                PostLogoutRedirectUri = postLogoutRedirectUri,
                Notifications = new OpenIdConnectAuthenticationNotifications
                {
                    AuthenticationFailed = context => 
                    {
                        context.HandleResponse();
                        context.Response.Redirect("/Error?message=" + context.Exception.Message);
                        return Task.FromResult(0);
                    }
                }
            }); …
Run Code Online (Sandbox Code Playgroud)

asp.net azure azure-active-directory

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