//---------------------------------------------------------------------------------------// private string GetCallerName(AuthHeader authHeader) { string sbName = null; // // Check if caller is specified // if (authHeader == null || authHeader.identifier == null || authHeader.passKey == null) { // // Check if authenticating // if (Global.allowedServiceBrokers.IsAuthenticating == false) { // Set string to LocalHost sbName = Consts.STR_SbNameLocalHost; } else { // Caller is not specified Logfile.Write(STRLOG_AccessDenied); } } else { // Get the caller's name sbName = Global.allowedServiceBrokers.Authentication(authHeader.identifier, authHeader.passKey); // // Check if caller is allowed access to this web service // if (sbName == null) { // Caller is not allowed access to this Web Method Logfile.Write(STRLOG_UnauthorisedAccess); } } return(sbName); }
//---------------------------------------------------------------------------------------// public LabServerWebService() { authHeader = new AuthHeader(); }
//---------------------------------------------------------------------------------------// private string GetCallerName(AuthHeader authHeader) { string sbName = null; // // Check if caller is specified // if (authHeader == null || authHeader.identifier == null || authHeader.passKey == null) { // // Check if authenticating // if (Global.allowedServiceBrokers.IsAuthenticating == false) { // Set string to LocalHost sbName = Consts.STR_SbNameLocalHost; } else { // Caller is not specified Logfile.Write(STRLOG_AccessDenied); } } else { // Get the caller's name sbName = Global.allowedServiceBrokers.Authentication(authHeader.identifier, authHeader.passKey); // // Check if caller is allowed access to this web service // if (sbName == null) { // Caller is not allowed access to this Web Method Logfile.Write(STRLOG_UnauthorisedAccess); } } return sbName; }