Publish: Login failed: Maximum number of sessions exceeded! (You are currently using a trial license)

0
Hi Team, We have a REST API to upload the data files to the App which is using the custom authentication. Inside which we  are checking the username and password using VerifyPassword java action. It calls    Core.authenticate(getContext(), user, password) . Does authenticate API creates new session everytime ?  As our upload API would be called many times, creating a new session per authenticate API will consume all the sessions. Please guide on the implementation. Logs:  Publish: Login failed: Maximum number of sessions exceeded! (You are currently using a trial license) Publish: com.mendix.basis.util.license.LicenseRuntimeException: Maximum number of sessions exceeded! (You are currently using a trial license) com.mendix.basis.util.license.LicenseUtil.checkTrialLimitation(LicenseUtil.scala:59) com.mendix.basis.util.license.LicenseUtil.checkUserLimitations(LicenseUtil.scala:38) com.mendix.basis.util.license.LicenseUtil.checkUserLimitations(LicenseUtil.scala:138) com.mendix.basis.util.license.LicenseUtil.checkSession(LicenseUtil.scala:135) com.mendix.basis.session.SessionManager.createSession(SessionManager.scala:55) com.mendix.basis.session.SessionManager.$anonfun$initializeSession$2(SessionManager.scala:50) scala.Option.getOrElse(Option.scala:201) com.mendix.basis.session.SessionManager.initializeSession(SessionManager.scala:50) com.mendix.basis.session.SessionManager.initializeSession(SessionManager.scala:30) com.mendix.basis.component.SessionCore.initializeSession(SessionCore.scala:74) com.mendix.basis.component.SessionCore.initializeSession$(SessionCore.scala:73) com.mendix.basis.component.InternalCore.initializeSession(InternalCore.scala:21) com.mendix.integration.authentication.MicroflowAuthenticator.createRegularSessionFromUser(MicroflowAuthenticator.scala:38) com.mendix.integration.authentication.MicroflowAuthenticator.$anonfun$authenticate$1(MicroflowAuthenticator.scala:23) scala.Option.flatMap(Option.scala:283) com.mendix.integration.authentication.MicroflowAuthenticator.authenticate(MicroflowAuthenticator.scala:20) com.mendix.integration.authentication.Authenticator.authenticate(Authenticator.scala:27) com.mendix.integration.authentication.Authenticator.$anonfun$authenticate$1(Authenticator.scala:35)      
asked
3 answers
0

On a trial license you can indeed only have 10 active sessions and then it will complain. But making multiple calls from the same user should not be a problem. You could also try to force kill the session on the end of your microflow that handles the web or rest service.

Regards,

Ronald

 

answered
0

Hello, Did you get the solution for this case?

answered
0

Really appreciate!

answered