mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -37,7 +37,7 @@ using OpenMetaverse;
|
||||
|
||||
namespace OpenSim.Services.Connectors
|
||||
{
|
||||
public class AuthorizationServicesConnector
|
||||
public class AuthorizationServicesConnector
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
@@ -45,7 +45,7 @@ namespace OpenSim.Services.Connectors
|
||||
|
||||
private string m_ServerURI = String.Empty;
|
||||
private bool m_ResponseOnFailure = true;
|
||||
|
||||
|
||||
public AuthorizationServicesConnector()
|
||||
{
|
||||
}
|
||||
@@ -78,11 +78,11 @@ namespace OpenSim.Services.Connectors
|
||||
throw new Exception("Authorization connector init error");
|
||||
}
|
||||
m_ServerURI = serviceURI;
|
||||
|
||||
|
||||
// this dictates what happens if the remote service fails, if the service fails and the value is true
|
||||
// the user is authorized for the region.
|
||||
bool responseOnFailure = authorizationConfig.GetBoolean("ResponseOnFailure",true);
|
||||
|
||||
|
||||
m_ResponseOnFailure = responseOnFailure;
|
||||
m_log.Info("[AUTHORIZATION CONNECTOR]: AuthorizationService initialized");
|
||||
}
|
||||
@@ -91,11 +91,11 @@ namespace OpenSim.Services.Connectors
|
||||
{
|
||||
// do a remote call to the authorization server specified in the AuthorizationServerURI
|
||||
m_log.InfoFormat("[AUTHORIZATION CONNECTOR]: IsAuthorizedForRegion checking {0} at remote server {1}", userID, m_ServerURI);
|
||||
|
||||
|
||||
string uri = m_ServerURI;
|
||||
|
||||
|
||||
AuthorizationRequest req = new AuthorizationRequest(userID, firstname, surname, email, regionName, regionID);
|
||||
|
||||
|
||||
AuthorizationResponse response;
|
||||
try
|
||||
{
|
||||
@@ -114,7 +114,7 @@ namespace OpenSim.Services.Connectors
|
||||
}
|
||||
m_log.DebugFormat("[AUTHORIZATION CONNECTOR] response from remote service was {0}", response.Message);
|
||||
message = response.Message;
|
||||
|
||||
|
||||
return response.IsAuthorized;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user