From 5e9fa5e7f543569f987e5f7c1533f33dbd0c711b Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 11 Dec 2018 15:09:06 +0000 Subject: [PATCH] Return a fake openid token to enable web services on a grid to identify the user --- OpenSim/Services/LLLoginService/LLLoginResponse.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index 823fd36470..5cb0d6995f 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs @@ -580,7 +580,10 @@ namespace OpenSim.Services.LLLoginService // We need to send an openid_token back in the response too if (openIDURL != String.Empty) + { responseData["openid_url"] = openIDURL; + responseData["openid_token"] = AgentID.ToString() + ":" + Util.Md5Hash(SecureSessionID.ToString()); + } if (m_buddyList != null) { @@ -696,7 +699,10 @@ namespace OpenSim.Services.LLLoginService map["profile-server-url"] = OSD.FromString(profileURL); if (openIDURL != String.Empty) + { map["openid_url"] = OSD.FromString(openIDURL); + map["openid_token"] = OSD.FromString(AgentID.ToString() + ":" + Util.Md5Hash(SecureSessionID.ToString())); + } if (searchURL != String.Empty) map["search"] = OSD.FromString(searchURL);