Esempio n. 1
0
        private static void CreateAOrderRelyingPartyWithRules(ServiceManagementWrapper acsWrapper)
        {
            var ips = new[] { LitwareIdentityProvider };

            Console.Write(string.Format("Creating {0} relying party....", AOrderRelyingParty));
            var ruleGroup = string.Format("Default role group for {0}", AOrderRelyingParty);

            byte[] key = Convert.FromBase64String(TokenKey);
            acsWrapper.AddRelyingPartyWithSymmetricKey(AOrderRelyingParty, AOrderRealmAddress, "https://break_here", key, TokenType.SWT, 30, ruleGroup, ips);
            Console.WriteLine("done");
            CreateAOrderRules(acsWrapper);
        }