aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AuthorizationRequest.cs
diff options
context:
space:
mode:
authorRob Smart2009-09-11 12:28:48 +0100
committerDiva Canto2009-09-11 06:50:24 -0700
commiteaec7cf39ce134b4da0622f67ee6037843f6eb29 (patch)
tree82d261a37ec91787a835e974c3075bdd0d770aeb /OpenSim/Framework/AuthorizationRequest.cs
parentChanged the interface of IAuthorizationService to get less data. (diff)
downloadopensim-SC_OLD-eaec7cf39ce134b4da0622f67ee6037843f6eb29.zip
opensim-SC_OLD-eaec7cf39ce134b4da0622f67ee6037843f6eb29.tar.gz
opensim-SC_OLD-eaec7cf39ce134b4da0622f67ee6037843f6eb29.tar.bz2
opensim-SC_OLD-eaec7cf39ce134b4da0622f67ee6037843f6eb29.tar.xz
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.
Diffstat (limited to 'OpenSim/Framework/AuthorizationRequest.cs')
-rw-r--r--OpenSim/Framework/AuthorizationRequest.cs36
1 files changed, 35 insertions, 1 deletions
diff --git a/OpenSim/Framework/AuthorizationRequest.cs b/OpenSim/Framework/AuthorizationRequest.cs
index 3280c65..ef99d3a 100644
--- a/OpenSim/Framework/AuthorizationRequest.cs
+++ b/OpenSim/Framework/AuthorizationRequest.cs
@@ -46,12 +46,46 @@ namespace OpenSim.Framework
46 m_regionID = RegionID; 46 m_regionID = RegionID;
47 } 47 }
48 48
49 public AuthorizationRequest(string ID,string FirstName, string SurName, string Email, string RegionName, string RegionID)
50 {
51 m_userID = ID;
52 m_firstname = FirstName;
53 m_surname = SurName;
54 m_email = Email;
55 m_regionName = RegionName;
56 m_regionID = RegionID;
57 }
58
49 public string ID 59 public string ID
50 { 60 {
51 get { return m_userID; } 61 get { return m_userID; }
52 set { m_userID = value; } 62 set { m_userID = value; }
53 } 63 }
54 64
65 public string FirstName
66 {
67 get { return m_firstname; }
68 set { m_firstname = value; }
69 }
70
71 public string SurName
72 {
73 get { return m_surname; }
74 set { m_surname = value; }
75 }
76
77 public string Email
78 {
79 get { return m_email; }
80 set { m_email = value; }
81 }
82
83 public string RegionName
84 {
85 get { return m_regionName; }
86 set { m_regionName = value; }
87 }
88
55 public string RegionID 89 public string RegionID
56 { 90 {
57 get { return m_regionID; } 91 get { return m_regionID; }