Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFStore] LoginService
[EMFStore] LoginService [message #1713888] Sat, 07 November 2015 14:33 Go to next message
Scott Dybiec is currently offline Scott DybiecFriend
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
Re: [EMFStore] LoginService [message #1714060 is a reply to message #1713888] Mon, 09 November 2015 16:19 Go to previous messageGo to next message
Edgar Mueller is currently offline Edgar MuellerFriend
Messages: 89
Registered: March 2011
Member
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

--
Edgar Mueller

Get Professional Eclipse Support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMFStore] LoginService [message #1714474 is a reply to message #1714060] Thu, 12 November 2015 22:02 Go to previous message
Scott Dybiec is currently offline Scott DybiecFriend
Messages: 148
Registered: July 2009
Senior Member
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
>
Previous Topic:how to edit a emf.ecore in xtext
Next Topic:[Edapt] BackwardConverter causes NP upon feature removal
Goto Forum:
  


Current Time: Sun Feb 23 02:39:11 GMT 2020

Powered by FUDForum. Page generated in 0.06216 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top