WPS 6.1 LoginService - Websphere
This is a discussion on WPS 6.1 LoginService - Websphere ; Hello,
We are switching from CMR to VMM. Trying to figure find out if there is a way to pass additional parameters (other than userId & password) to VMM during login call.
Here is the sample code:
{code}
LoginService loginService ...
-
WPS 6.1 LoginService
Hello,
We are switching from CMR to VMM. Trying to figure find out if there is a way to pass additional parameters (other than userId & password) to VMM during login call.
Here is the sample code:
{code}
LoginService loginService = (LoginService) loginHome.getLoginService(request, response);
String userId = request.getParameter(FORM_ID);
String password = request.getParameter(FORM_PASSWORD);
Map contextMap = new HashMap();
contextMap.put(LoginService.DO_RESUME_SESSION_KEY, new Boolean(false));
try {
loginService.login(userId, password.toCharArray(), contextMap, null); // --------- How do I pass additional parameters to VMM ???
} catch (Exception ex) {
System.out.println("this login failed with = " + ex.getMessage());
ex.printStackTrace();
} finally {
setCredential(request,userId,password);
}
{/code}
Any help will be appreciated!
Thanks
-
Re: WPS 6.1 LoginService
the null is just for security subjects, I think you would need to use something like dynacache or some other service to hold this information for you
Jim
IBM Certified System Administrator -- WebSphere Portal V6.0, V5.1, V5.0
IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0
The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM