Example #1
0
            protected internal async override Task init()
            {
                var response = await Session.CallAsync(AuthRequest.Login(Parameters.Company, Parameters.Username, Parameters.Password), () => Cookies);

                var accountCookie = Session.Cache.Get("HrbcAccount") as string;

                Session.Logger.LogDebug($"AuthSession init session: {response.Session} HRBCACCOUNT={accountCookie}");
                this.Parameters = (response.IsSuccess)
                    ? PrivateAuthentication.WithSession(response.Session, accountCookie, Parameters)
                    : PrivateAuthentication.NoCredentials;
            }
Example #2
0
            protected internal async override Task init()
            {
                var response = await Session.CallAsync(AuthRequest.Login(Parameters.Company, Parameters.Username, Parameters.Password), () => Cookies);

                this.Parameters = (response.IsSuccess) ? PrivateAuthentication.WithSession(response.Session, Parameters) : PrivateAuthentication.NoCredentials;
            }