No more Licenses avaiable and Authenticator

Questions, tips and tricks and techniques for scripting in Servoy

No more Licenses avaiable and Authenticator

Postby irennie » Fri Apr 01, 2011 11:49 am

Hi,

We are hitting a problem with Licenses and the enhanced authentication in Servoy 5.2. We converted our application to use enhanced authentication with separate Login and Authenticator solutions. Now when a user tries to login to our solution when the license limit for concurrent users has been reached Servoy shows our custom login window (with the splash window saying it is in demo mode) as I believe Servoy allows an extra license to the number purchased, but the Authenticator solution cannot access the server data to authenticate as I believe it requires a further license for a short period to authenticate.

An error is placed in the server log that "No more Licenses available". However the problem is that the user trying to log in does not know this and they just get an authentication error suggesting they have entered the wrong password.

We also hit the same problem when a Headless Client is triggered on an external event. If all the licenses are used then the Headless Client logs into the Login solution (with the "extra" license) but then cannot authenticate (requiring a further extra license) and it then hangs in the Login solution without carrying out its function, and it does not close itself down.

Have we implented something wrongly, or is this expected behaviour? If it is expected we would rather the user is given the message that there are no licenses left when they try to login (before being asked to enter their password), and the headless client is prevented from starting when there are no licenses left, rather than hanging in the Login solution.
Iain Rennie
Asset Guardian Solutions Limited
http://www.assetguardian.com
User avatar
irennie
 
Posts: 27
Joined: Fri Jun 11, 2010 3:24 pm
Location: Livingston, UK

Re: No more Licenses avaiable and Authenticator

Postby rgansevles » Fri Apr 01, 2011 12:36 pm

Iain,

You are right, the authenticator solution requires a license for a very short time.
When this is not available, the auth code is not executed.

Please file a case for allowing the end user to see some feedback on this case.

Note that when you enter the admin email address in the server admin, an automatic email is sent when licences are (almost) used.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: No more Licenses avaiable and Authenticator

Postby lwjwillemsen » Fri Apr 01, 2011 1:12 pm

+1 :(

Discovered this the hard way some weeks ago. Very annoying...

I guess every (temp) license counts for Servoy ?
Can you really do that much in an authenticator module so that a license is required (in Servoy opinion) ?
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 680
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: No more Licenses avaiable and Authenticator

Postby irennie » Fri Apr 01, 2011 4:33 pm

Rob,

Its not just the feedback to the user that causes the problem but the Headless Client getting stuck in the Login solution when it is started. I'll raise a case and try to cover both things.
Iain Rennie
Asset Guardian Solutions Limited
http://www.assetguardian.com
User avatar
irennie
 
Posts: 27
Joined: Fri Jun 11, 2010 3:24 pm
Location: Livingston, UK

Re: No more Licenses avaiable and Authenticator

Postby Harjo » Fri Apr 01, 2011 4:41 pm

We saw this also!, we have a client with 5 licenses.
When 4 are logged in, number 5 want's to login, and starts in the login solution, (which is license number 5)
the login solution, starts the authenticator, which is number 6!! and the sh....t hits the fan.... :(

so +1 for not consuming a license for the authenticator.....
Or make it the other way around! Don't consume a license for the login-solution! You can't do ANYTHING in the login-solution, except talking/validating against the authenticator
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: No more Licenses avaiable and Authenticator

Postby irennie » Fri Apr 01, 2011 4:55 pm

Case #372161 entered.
Iain Rennie
Asset Guardian Solutions Limited
http://www.assetguardian.com
User avatar
irennie
 
Posts: 27
Joined: Fri Jun 11, 2010 3:24 pm
Location: Livingston, UK

Re: No more Licenses avaiable and Authenticator

Postby ngervasi » Fri Apr 01, 2011 6:10 pm

In my opinion licenses should not be consumed for both the login and the authenticator solutions.
Think about webclient, sometimes people hit your login page and then navigate away, sometimes robots do that. It's quite easy to run out of licenses in this scenario.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: No more Licenses avaiable and Authenticator

Postby Harjo » Fri Apr 01, 2011 6:17 pm

Fully agree!
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: No more Licenses avaiable and Authenticator

Postby bobcusick » Fri Apr 01, 2011 6:33 pm

+1
User avatar
bobcusick
 
Posts: 126
Joined: Mon Jan 12, 2009 9:13 pm

Re: No more Licenses avaiable and Authenticator

Postby rgansevles » Wed Apr 06, 2011 10:53 am

Iain,

In Servoy 5.2.8, the authenticator solution running in the application server will no longer use a client license.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: No more Licenses avaiable and Authenticator

Postby Harjo » Wed Apr 06, 2011 12:48 pm

That's great news Rob! Can this be done, by the login solution also? (for instance only when enhanced security is checked??)
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: No more Licenses avaiable and Authenticator

Postby ngervasi » Wed Apr 06, 2011 1:10 pm

Yes, can this also be done for the login solution? As I explained before if you deploy webclient as part of a website (let's say a customer area) it's quite easy that visitors hit you login page consuming a license and then navigate away.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: No more Licenses avaiable and Authenticator

Postby lwjwillemsen » Wed Apr 06, 2011 1:23 pm

Thanks Rob ! One less hurdle...

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 680
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: No more Licenses avaiable and Authenticator

Postby rgansevles » Fri Apr 08, 2011 4:34 pm

ngervasi wrote:Yes, can this also be done for the login solution? As I explained before if you deploy webclient as part of a website (let's say a customer area) it's quite easy that visitors hit you login page consuming a license and then navigate away.


Nicola,

A end-user-client will always consume a license, even before login.
An authenticator client is different because it always runs on-behalf-of another client so that other client consumes the license.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL


Return to Methods

Who is online

Users browsing this forum: No registered users and 12 guests