[EMFStore] LoginService [message #1713888] |
Sat, 07 November 2015 14:33 |
Scott Dybiec Messages: 148 Registered: July 2009 |
Senior Member |
|
|
I'm integrating some code with the EMFStore Server --- code that will
run inside the same JVM along with the server. I would like to be able
to integrate with the LoginService ---- more specifically to be able to
verify user credentials without creating a session.
Would it be possible to add a method similar to this to EMFStore's
org.eclipse.emf.emfstore.internal.server.accesscontrol.LoginService?
public boolean verifyUser(String username, String password,
ESClientVersionInfo clientVersionInfo) {
boolean isVerified;
try {
getUserVerifierService().verifyUser(
username,
password,
clientVersionInfo);
isVerified = true;
} catch (AccessControlException ex) {
isVerified = false;
}
return isVerified;
}
or
public ESAuthenticationInformation verifyUser(String username, String
password,
ESClientVersionInfo clientVersionInfo) throws AccessControlException {
return getUserVerifierService().verifyUser(
username,
password,
clientVersionInfo);
}
Or to provide some other mechanism for providing the ability to verify a
user's credentials w/o creating a session.
As an alternative I could call LoginService.logIn() followed by
LoginService.logOut(), but it seems wasteful to create and destroy a
session just to verify credentials.
$cott
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02425 seconds