Revision 4936
Added by Chris Jones over 15 years ago
src/edu/ucsb/nceas/metacat/AuthSession.java | ||
---|---|---|
222 | 222 |
out.append(userInfo[0]); |
223 | 223 |
out.append("\n</name>\n"); |
224 | 224 |
} |
225 |
|
|
226 |
if(userInfo != null && userInfo[1]!=null){ |
|
227 |
out.append("\n<organization>\n"); |
|
228 |
out.append(userInfo[1]); |
|
229 |
out.append("\n</organization>\n"); |
|
230 |
} |
|
231 |
|
|
232 |
if(userInfo != null && userInfo[2]!=null){ |
|
233 |
out.append("\n<email>\n"); |
|
234 |
out.append(userInfo[2]); |
|
235 |
out.append("\n</email>\n"); |
|
236 |
} |
|
225 | 237 |
|
226 | 238 |
try { |
227 | 239 |
// insert <isAdministrator> tag if the user is an administrator |
Also available in: Unified diff
In AuthSession, I've modified the formatOutput() method to include both the email and organization values found in the userInfo array. On successful login(), this changes the returned xml to include <email> and <organization> elements if they exist in the userInfo array. This information is useful to web client applications that need to show login status beyond just the users full name.