public RacoonAurthorisationResponse Authenticate(string userName, string password, string stardogUser, string stardogPassword, Uri stardogServer, string stardogDatastore, string language) { RacoonAurthorisationResponse response = new RacoonAurthorisationResponse(); try { response.Token = Auth.GetToken(userName, password); if (response.Token != null) { SessionStore.CreateAndAddSession(response.Token, new ServerDetails(stardogUser, stardogPassword, stardogDatastore, stardogServer), language); response.AuthorisationOK = true; } else { response.AuthorisationOK = false; } } catch (Exception exp) { response.Error = exp; } response.Status = response.Error == null; return(response); }