...
appears to be the section of code we need to modify if we want to use Crowd authentication. Then, rebuild gridsphere.jar and deploy it along with the tdar.
Code Block |
---|
PortletRequest req = event.getPortletRequest();
PortletResponse response = event.getPortletResponse();
String username = req.getParameter("username");
String password = req.getParameter("password");
HttpAuthenticator authenticator = HttpAuthenticatorFactory.getHttpAuthenticator();
try {
authenticator.authenticate(req, response, username, password);
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvalidAuthorizationTokenException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvalidAuthenticationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InactiveAccountException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
|
How-tos
How to make a new portlet
...