Пример #1
0
        public Form1()
        {
            InitializeComponent();
            userName = UserNameTextBox.Text;
            password = PasswordTextBox.Text;

            this.securityHelper    = new SecurityHelper(userName, password);
            this.appSettingsHelper = new RegistryAppSettingsHelper(this.securityHelper);
            this.client            = AuthenticationClientUtils.CreateAuthenticationClient(this.appSettingsHelper);
            this.stateController   = new AuthnStateController(this.client, this.appSettingsHelper, userName);
        }
Пример #2
0
 public SmsFactor(AuthenticationClient authnClient, AuthnStateController stateController)
 {
     this.authnClient     = authnClient;
     this.stateController = stateController;
 }