mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
Fix XBakes simulator-side authentication regression failure
Unlike the other connectors, XBakes uses a service auth retrieved from ServiceAuth.Create() and not code inherited from BaseServiceConnector.
Fixes regression from 7d3bafd5 (Wed 4 Mar 2015) where the new CompoundAuthenticator did not implement IServiceAuth.AddAuthorization()
This commit is contained in:
@@ -35,10 +35,17 @@ namespace OpenSim.Framework.ServiceAuth
|
||||
{
|
||||
public class CompoundAuthentication : IServiceAuth
|
||||
{
|
||||
public string Name { get { return "Compound"; } }
|
||||
|
||||
private List<IServiceAuth> m_authentications = new List<IServiceAuth>();
|
||||
|
||||
public int Count { get { return m_authentications.Count; } }
|
||||
|
||||
public List<IServiceAuth> GetAuthentors()
|
||||
{
|
||||
return new List<IServiceAuth>(m_authentications);
|
||||
}
|
||||
|
||||
public void AddAuthenticator(IServiceAuth auth)
|
||||
{
|
||||
m_authentications.Add(auth);
|
||||
@@ -49,7 +56,11 @@ namespace OpenSim.Framework.ServiceAuth
|
||||
m_authentications.Remove(auth);
|
||||
}
|
||||
|
||||
public void AddAuthorization(NameValueCollection headers) {}
|
||||
public void AddAuthorization(NameValueCollection headers)
|
||||
{
|
||||
foreach (IServiceAuth auth in m_authentications)
|
||||
auth.AddAuthorization(headers);
|
||||
}
|
||||
|
||||
public bool Authenticate(string data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user