[EMFStore] LoginService [message #1713888] |
Sat, 07 November 2015 09:33  |
Eclipse User |
|
|
|
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
|
|
|
|
Re: [EMFStore] LoginService [message #1714474 is a reply to message #1714060] |
Thu, 12 November 2015 17:02  |
Eclipse User |
|
|
|
Done.
On 11/9/2015 11:19 AM, Edgar Mueller wrote:
> Hi Scott,
>
> I can't say for sure that such a method would be placed in the
> LoginService, but we should be able to come up with a more sophisticated
> solution to check for the validity of a single user without the need of
> creating a session first.
> Please open a feature request via Bugzilla.
>
> Thanks,
> Edgar
>
|
|
|
Powered by
FUDForum. Page generated in 0.04248 seconds