login/security setup in version 5.0.1

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

login/security setup in version 5.0.1

#1

Postby kotinkarwak » Fri Jan 22, 2016 9:16 pm

Hi,

http://screencast.com/t/OovrHjMG

I have previously worked through a setup of security in v5.0.0 which when started had included the projects ebaseSystemServices that had the bulk of security defined and only needed to tweek some of these files. A download of v5.0.1 provided a blank worksheet and I thought would be ideal to simply build my application and define the security from the learnt exercises previously. I am using own database to store the credential data. So far, I can test the logon service ok but when I go to implement in code for a login form button

Code: Select all

system.securityManager.logon( [
  																["Script", "kotin"],
   																["Script", "kotin"]
     														] );
the following error occurs

com.ebasetech.ws.core.cxf.client.CXFExceptionWrapper: Could not invoke service. java.lang.IllegalStateException: Local destination does not have a MessageObserver on address local://ufs/ebaseLogonService
How do I tell ebase to use my defined logon service?
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Jan 25, 2016 9:16 am

The message means that the Logon Service with web service name ebaseLogonService is not started, probably something is wrong with it. Each Logon Service has a unique web service name and you can call an explicit logon service by adding the web service name to the logon call e.g.

Code: Select all

system.securityManager.logon( "myLogonService", [  ["Script", "kotin"],  ["Script", "kotin"]  ] );
You can also change the default logon web service name from ebaseLogonService using the server admin app: Security Properties > Xi Logon Exit General Properties
0 x


Who is online

Users browsing this forum: No registered users and 8 guests