예제 #1
0
 public void AcceptEmptyAllowedCallersArray()
 {
     var validator = new Microsoft.BotFramework.Composer.WebAppTemplates.Authorization.AllowedCallersClaimsValidator(new BotSkillConfiguration()
     {
         AllowedCallers = new string[0]
     });
 }
예제 #2
0
        public async Task AllowAnyCaller()
        {
            var validator = new Microsoft.BotFramework.Composer.WebAppTemplates.Authorization.AllowedCallersClaimsValidator(new BotSkillConfiguration()
            {
                AllowedCallers = new string[] { "*" }
            });
            var callerAppId = "BE3F9920-D42D-4D3A-9BDF-DBA62DAE3A00";
            var claims      = CreateCallerClaims(callerAppId);

            await validator.ValidateClaimsAsync(claims);
        }