Beispiel #1
0
        public async Task <bool> ValidateSessionAsync(string sessionid)
        {
            var usrSvc     = new KTA_UserServices.UserServiceClient();
            var taskresult = await usrSvc.ValidateSessionAsync(sessionid);

            await usrSvc.CloseAsync();

            return(taskresult.IsValid);
        }
Beispiel #2
0
        public async Task <string> LogonUsingWindowsAsync(String username)
        {
            var           usrSvc = new KTA_UserServices.UserServiceClient();
            UserIdentity2 currentUserIdentity = new UserIdentity2();

            currentUserIdentity.UserId        = username;
            currentUserIdentity.LogOnProtocol = 7;
            var usrSession = await usrSvc.GetSingleSignOnSessionAsync(_config.KTA_SYSTEM_SESSION, currentUserIdentity);

            await usrSvc.CloseAsync();

            return(usrSession.SessionId);
        }