问题描述
我正在尝试通过添加.pfx证书来保护Azure Web应用程序。
在Azure门户中,我添加了pfx文件:
App Service -> TLS/SSL settings -> Private Key Certificates (.pfx) -> Upload Certificate
然后在设置刀片下:
Configuration -> General Settings -> Incoming client certificates -> Client certificate mode
我们提供3个选项:“需要”,“允许”和“忽略”。
- 如果我选择
Ignore
,则无论我在哪里拥有网站,都可以导航到我的网站 证书是否安装在我的计算机上。 - 如果我选择
Require
,我 仅当我安装了证书时才可以导航到我的网站 我的电脑。 - 如果我选择
Allow
,则该行为类似于Ignore
选项: 可以在我安装了证书的任何地方导航到我的网站 是否在我的计算机上。
那么Allow
选项的目的是什么?
我没有找到任何文献。
screenshot of the option in Azure
解决方法
loadContacts : function(cmp) {
var action = cmp.get("c.getContacts");
action.setCallback(this,function(response){
var state = response.getState();
if (state === 'SUCCESS') {
cmp.set('v.contacts',response.getReturnValue());
cmp.set('v.contactList',response.getReturnValue());
this.updateTotal(cmp);
}
console.log('Here');
var toastEvent = $A.get("e.force:showToast");
if (state === 'SUCCESS') {
cmp.find('notifLib').showToast({
"title" : 'Success!',"message" : 'Your contacts have been loaded successfully.'
"variant": 'success',"mode": 'sticky'
});
}
else {
cmp.find('notifLib').showToast({
"title" : "Error!","message" : "Something has gone wrong."
"variant": 'error',"mode": 'sticky'
});
}
});
$A.enqueueAction(action);
},
选项表示该应用将请求证书,但如果未提供证书,则该请求不会失败。这与Allow
的不同之处在于,忽略选项首先不会要求提供证书。