简体   繁体   English

Azure Function 认证应用程序中的主机密钥

[英]Host key in Azure Function App for Authentication

I have created two host keys(As shown in the below screen shot)我创建了两个主机密钥(如下面的屏幕截图所示)

  1. AccessKey访问密钥
  2. AccessKey02访问密钥02

How I can set, which one will be use for authentication?我如何设置,哪一个将用于身份验证?

在此处输入图像描述

All of the key will be used to authentication.所有的密钥都将用于身份验证。

The host key acts on the entire function app.主机密钥作用于整个 function 应用程序。 You can use any of them for verification, if you do not want to use it for verification, then revoke it.您可以使用其中任何一个进行验证,如果您不想将其用于验证,则将其撤消。 The host key you set becomes the key to access all triggers in the function app.您设置的主机密钥成为访问 function 应用程序中所有触发器的密钥。 (All of them will work). (所有这些都可以工作)。 If you want to use different authentication for different triggers, then use the function key that acts on a single trigger.如果要对不同的触发器使用不同的身份验证,请使用作用于单个触发器的 function 密钥。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM