Пример #1
0
        private static void Main()
        {
            var acs = new ServiceManagementWrapper(AcsServiceNamespace, AcsUsername, AcsPassword);

            Console.WriteLine("Setting up ACS namespace:" + AcsServiceNamespace);

            CleanupRelyingParty(acs);

            acs.RemoveIdentityProvider("Google");
            acs.AddGoogleIdentityProvider();
            acs.RemoveIdentityProvider("Facebook");
            acs.AddFacebookIdentityProvider("Facebook", "Your Facebook Application Id", "Your Facebook Application Secret");

            CreateRelyingPartysWithRules(acs);

            Console.WriteLine("Setup complete. Press any key to exit.");
            Console.ReadKey();
        }