mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Changed RemoteAuthorizationServiceConnector so that it implements the IAuthorization interface method isAuthorizedForRegion looks up user and region data and delegates the remote authorization check to the AuthorizationServiceConnector
This keeps the IAuthorization as clean as possible and moves the dependency of using a UserProfileData object out to the connector from the scene.
This commit is contained in:
@@ -46,12 +46,46 @@ namespace OpenSim.Framework
|
||||
m_regionID = RegionID;
|
||||
}
|
||||
|
||||
public AuthorizationRequest(string ID,string FirstName, string SurName, string Email, string RegionName, string RegionID)
|
||||
{
|
||||
m_userID = ID;
|
||||
m_firstname = FirstName;
|
||||
m_surname = SurName;
|
||||
m_email = Email;
|
||||
m_regionName = RegionName;
|
||||
m_regionID = RegionID;
|
||||
}
|
||||
|
||||
public string ID
|
||||
{
|
||||
get { return m_userID; }
|
||||
set { m_userID = value; }
|
||||
}
|
||||
|
||||
|
||||
public string FirstName
|
||||
{
|
||||
get { return m_firstname; }
|
||||
set { m_firstname = value; }
|
||||
}
|
||||
|
||||
public string SurName
|
||||
{
|
||||
get { return m_surname; }
|
||||
set { m_surname = value; }
|
||||
}
|
||||
|
||||
public string Email
|
||||
{
|
||||
get { return m_email; }
|
||||
set { m_email = value; }
|
||||
}
|
||||
|
||||
public string RegionName
|
||||
{
|
||||
get { return m_regionName; }
|
||||
set { m_regionName = value; }
|
||||
}
|
||||
|
||||
public string RegionID
|
||||
{
|
||||
get { return m_regionID; }
|
||||
|
||||
Reference in New Issue
Block a user