Arctic-Fox/Shibboleth-Liferay-Extension — Issue #1: ShibbolethAutoLogin: java.lang.NullPointerException
Author: dmichelotto
Created: 2012-02-22 14:42:37+00:00
State: open

Dear Arctic-Fox
We have found your plugin on github, and wanted to test it.

When we tested your plugin we always get the following error and no other information with increased verbosity in log:

13:58:06,268 ERROR [ShibbolethAutoLogin: 78] java.lang.NullPointerException
at com.liferay.portal.security.auth.ShibbolethAutoLogin.login (ShibbolethAutoLogin.java: 58)

[...]

13:58:06,269 ERROR [AutoLoginFilter: 246] Current URL / web / guest Generates exception: java.lang.NullPointerException
13:58:06,553 ERROR [ShibbolethAutoLogin: 78] java.lang.NullPointerException
at com.liferay.portal.security.auth.ShibbolethAutoLogin.login (ShibbolethAutoLogin.java: 58)
[...]

13:58:06,554 ERROR [AutoLoginFilter: 246] Current URL / web / guest Generates exception: java.lang.NullPointerException

We have configured the plugin and the hook as described in the README and follow the instructions on your blog.

1 - Deploy shibauthentication-ext-6.0.6.1.war
2 - Create the file portal-ext.properties with the following contents:
# Shibboleth Login Auto Setup
auto.login.hooks = com.liferay.portal.security.auth.ShibbolethAutoLogin, com.liferay.portal.security.auth.RememberMeAutoLogin
auth.pipeline.enable.liferay.check = false
3 - Deploy authenticationconfig-hook-6.0.6.1.war
4 - Configuring liferay specifying the User Header

We have installed and configured successfully connected from local Service Provider to our Identity Provider.

If we carry out with the login https://host/Shibboleth.sso/Login we successfully logged in, then check the session with https://host/Shibboleth.sso/Session get this information:

Miscellaneous
Client Address: xxx.xxx.xxx.xxx
Identity Provider: https://idphost/idp/shibboleth
SSO Protocol: urn: oasis: names: tc: SAML: 2.0: protocol
Authentication Time: 2012-02-22T14: 14:55.163 Z
Authentication Context Class: urn: oasis: names: tc: SAML: 2.0: ac: classes: PasswordProtectedTransport
Authentication Context Decl: (none)
Session Expiration (barring inactivity): 479 minute (s)

Attributes
shibattr-cn: 1 value (s)
shibattr-eppn: 1 value (s)
shibattr-givenName: 1 value (s)
shibattr-mail: 1 value (s)
shibattr-sn: 1 value (s)
shibattr-uid: 1 value (s)

When configure liferay for the use of shibboleth we tested each of these attributes, but the error obtained is always the same above.

Best regards
D.M.