<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "SSO - Single Sign On"]]></title>
		<link>https://community.jforum.net/posts/list/5.page</link>
		<description><![CDATA[Latest messages posted in the topic "SSO - Single Sign On"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>SSO - Single Sign On</title>
				<description><![CDATA[ I got the SSO working on jforum 2.1.9 implementing net.jforum.sso.SSO. Now I tried jforum 2.3.1 and it seems like this handling isn't working anymore.
<br>
<br>
Here's what's going on in 'authenticateUser':
<br>
<br>
[code]
<br>
public String authenticateUser(RequestContext ctx) {
<br>
String user = null;
<br>
try {
<br>
<br>
String email = null;
<br>
// Get UserID
<br>
Long userId = SecurityTools.getInstance().getUserIdFromCookie();
<br>
if (userId != null) {
<br>
// Determine user data from somewhere
<br>
UserData userData = response.getData(0);
<br>
user = userData.getUsr();
<br>
email = userData.getEmail();
<br>
// TODO: Adapt class ControllerUtils to use more/custom
<br>
// attributes for user creation (see
<br>
// http://www.andowson.com/posts/list/227.page)
<br>
<br>
// The password is irrelevant as the user has already logged on
<br>
// (set it anyway in case JForum uses it)
<br>
ctx.getSessionContext().setAttribute("password", "");
<br>
ctx.getSessionContext().setAttribute("email", email);
<br>
<br>
}
<br>
<br>
if (LOG.isInfoEnabled()) {
<br>
LOG.info("SSO User: " + userId + ", " + user + ", " + email);
<br>
}
<br>
} catch (Exception ex) {
<br>
LOG.error("Problem in authenticateUser!", ex);
<br>
}
<br>
return user;
<br>
}[/code]
<br>
<br>
Please can someone explain what's missing or what's been changed between the versions?
<br>]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/10/30.page</guid>
				<link>https://community.jforum.net/posts/preList/10/30.page</link>
				<pubDate><![CDATA[Thu, 18 Aug 2011 20:21:24]]> GMT</pubDate>
				<author><![CDATA[ 20mithrandir]]></author>
			</item>
			<item>
				<title>Re:SSO - Single Sign On</title>
				<description><![CDATA[ We're using the SecureSSO module (sort of meant for Grails, but I think it'll work for any java project). You might try that one:
<br>
<br>
http://blog.smartkey.co.uk/2009/10/secure-sso-for-jforum/
<br>
<br>
I did find a bug that I had to fix, it would get a NPE if the SSO cookie was not set and the user went directly to the forums - the source is included so you can add a null check for that to fix it - other than that it works for us.
<br>]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/10/31.page</guid>
				<link>https://community.jforum.net/posts/preList/10/31.page</link>
				<pubDate><![CDATA[Wed, 24 Aug 2011 01:54:25]]> GMT</pubDate>
				<author><![CDATA[ rvanderwerf]]></author>
			</item>
			<item>
				<title>Aw:SSO - Single Sign On</title>
				<description><![CDATA[ Sorry, the fault was on my side. It's working perfectly in the new version ... one of the configuration properties wasn't set correctly. So shame on me and thanks for listening...]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/10/34.page</guid>
				<link>https://community.jforum.net/posts/preList/10/34.page</link>
				<pubDate><![CDATA[Wed, 24 Aug 2011 16:36:24]]> GMT</pubDate>
				<author><![CDATA[ 20mithrandir]]></author>
			</item>
	</channel>
</rss>