2021.03 Product Update Webinar

Servoy announcements

2021.03 Product Update Webinar

Postby sean » Wed Mar 31, 2021 5:56 pm

Servoy 2021 update - April 7 and 9 - Q1 Launch Webinar

Please join us for this special 2-part webinar series to introduce Servoy’s first-quarter launch (v2021.03). We’ve got big things in the works this year and we are excited to share with you!

April 7th - Business Track

Sean Devlin (product management) and Ron van der Burg (CEO) will discuss the vision behind the release and the business impact for the ISV and Enterprise app community. 

April 9th - Technical Track

We’ll dive right into the details and cover the key features of this release and of course do some demos!

(Part of our tech-series? You'll be registered already!)

Register Today!

Introducing Servoy’s major upgrade to NG2 
    Servoy’s HTML5 Client for Web & Mobile gets a major upgrade
Introducing Servoy Smart Document Editor
    For any rich text editing in business applications
    Threaded conversations and activity streams
    Data-driven templating with merge
    Powerful  @mentions  feature
    Reporting, End-user / Ad hoc reports
    Email Merge
    Formatted Data Export
    Copy/Paste from MS Word/Google Docs
Servoy’s Security Extension gets new features
    Token-based authentication
    Single Sign-On (SSO) for Web and Mobile apps

Wednesday April 7 & Friday April 9, 2021
8am Los Angeles (PST)
11am New York (EST)
17h Amsterdam (CET)

Register Today!
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: 2021.03 Product Update Webinar

Postby steve1376656734 » Thu Apr 15, 2021 4:49 pm

Hi Sean,

The webinars were very informative and looks like some exciting things to come this year.

I have tried to implement the token based sign on that you showed for single-sign-on and have run into a couple of issues.

The first is there seems to be a bug in the svySecurity.js file where it is trying to find the user given in the token and is supplying the tenant name and user name in the wrong order to the scopes.svySecurity.getUser() method. It's line 3336 of svySecurity and I have reported it as a bug on the support system (SVYX-215).

The second is a bit more complicated. I am using a login form instead of a login solution and am struggling to work out where to put my code. I have tried putting it in the onLoad of the login form but, although I see the message saying the user was successfully logged in (after fixing the bug above), it still shows the login form for the user to enter the details. It seems to briefly flash the actual solution form before the login form shows. How can I implement the token-based login with a login form instead of a login solution?

Thanks
Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 327
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: 2021.03 Product Update Webinar

Postby steve1376656734 » Thu Apr 15, 2021 5:21 pm

Hi Sean,

Having done some further investigation it seems that the problem is the onShow of the login form is running AFTER the user has been logged in and the main solution form is shown and there is nowhere that I can seem to find to put the token login code that will stop the onShow from running.

Thanks
Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 327
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: 2021.03 Product Update Webinar

Postby sean » Thu Apr 15, 2021 6:05 pm

Hi Steve,

Thanks for trying the token-based auth feature of 2021.03.

You say that the onShow for the login form is fired after login. I assume that you mean after login with token right?

Do you see a kind of flickering of the form ?

I suspect that you are using a loginForm property, but not a loginSolution module. If so, that is fine, but I don't believe you can stop the loginForm from showing. I recommend that you use a loginSolution and put the loginWithToken call in the onSolutionOpen of the loginSolution

More info here:
https://github.com/Servoy/svySecurity/w ... gn-on-(SSO)
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: 2021.03 Product Update Webinar

Postby steve1376656734 » Thu Apr 15, 2021 6:24 pm

Hi Sean,

Are you saying that taken-based auth is not supported with a login form, only a login solution?

If so that's a little disappointing as I thought that one of the previous webinars had recommended using a login form over a login solution as the login solution was really for smart clients to prevent access to the DB from the client prior to logging in.

That said though, I think I have managed to find a way around the issue even though is is a bit of a kludge. If I change the onLoad and onShow of my login form to be:
Code: Select all
function onLoad(event) {
   var namespace = 'com.myNamespace'; //$NON-NLS-1$

   // Try to log in using a token if it exists
   loggedIn = scopes.svySecurity.loginWithToken(namespace);

   if (loggedIn) {
      onLoginSuccess();
   } else {
      // Set the SSO token mode
      scopes.svySecurity.setTokenBasedAuth(namespace, 24);
      
      // Rest of processing for normal login form onLoad
      .
      .
      .
   }
}
   
function onShow(firstShow, event) {
      if (security.getUserName()) {
         application.showForm('myFirstForm'); //$NON-NLS-1$
      } else {
         .
         // Normal processing if the login form is to show
         .
      }
}

Then everything works as expected. The only thing I can't seem to figure out is how to get the value of firstForm from the solution. This is important because we use the same login module for multiple solutions and the firstForm is different for each one. If we could just get that value in code everything would be right with the world!

Any suggestions for getting the firstForm value would be very welcome.

Thanks
Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 327
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: 2021.03 Product Update Webinar

Postby sean » Fri Apr 16, 2021 2:59 am

Hi Steve,

Login tokens are supported for loginForm or loginSolution. The challenge with loginForm is that you can get a screen flicker because the very 1st event is the form's onLoad.

I don't understand the question, why you need the firstForm of the solution at runtime, because that form is always loaded once login() is called.
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: 2021.03 Product Update Webinar

Postby steve1376656734 » Fri Apr 16, 2021 8:06 am

I need to get the first form because although this is called automatically on login it is then immediately replaced by the login form. I will get a sample solution that demonstrates the problem for you.
steve1376656734
 
Posts: 327
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: 2021.03 Product Update Webinar

Postby jcompagner » Fri Apr 16, 2021 9:08 am

would Servoy not automatically go to the first form if you login?
i also think you should be able to do everything in the onload, why would you split that up between onload/onshow because looking from servoys point of view that are just 2 methods called right after each other

(but i am not 100% sure if you call login() directly in onload of a login form that we right away see that and go straight to the first form, but thats something we could improve)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: 2021.03 Product Update Webinar

Postby steve1376656734 » Fri Apr 16, 2021 3:32 pm

Hi Johan,

I have created a case for this (SVYX-216) with an attached sample solution which demonstrates the issue. I have also made a suggestion for an improvement that could solve the issue and make token based authentication easy to use for people who don't use the svySecurity module.

Thanks
Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 327
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: 2021.03 Product Update Webinar

Postby rafig » Fri Jun 04, 2021 4:29 pm

Hi Sean,
I see that with the latest release of svySecurity you have created an option for 'sub-tenants'.
If I create a 'Tenant' (say a parent company) and then some 'sub tenants' of that tenant (say branch offices), are those sub-tenants restricted to seeing only the records for their sub-tenancy (e.g. only the data for that branch office) , or can they see all records for the tenant (parent company) ??

Thanks
Rafi
Servoy Certified Developer
Image
rafig
 
Posts: 704
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: 2021.03 Product Update Webinar

Postby sean » Sat Jun 05, 2021 3:47 pm

Hi Rafi,

No it's not quite like that. The sub tenants are not like sub orgs. There is no data filtering implied (That could already be achieved using table filter params and the IN operator)

It's more that you can replicate roles and permissions from a "master" tenant to sub tenants. For example, you configure a tenant with a bunch of roles and permissions that you like, you don't want to do that for every new tenant. Moreover, suppose that you then update the master tenant, say add a new role, you want that to replicate to all subordinate tenants.

More here:
https://github.com/Servoy/svySecurity/w ... eplication

Best,
Sean
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: 2021.03 Product Update Webinar

Postby rafig » Sat Jun 05, 2021 5:14 pm

sean wrote:Hi Rafi,
No it's not quite like that. The sub tenants are not like sub orgs. There is no data filtering implied (That could already be achieved using table filter params and the IN operator)
Best,
Sean

Hi Sean,
thanks for the reply & clarification.
I knew the bit about roles/permissions but just wanted to clarify the other bit.

Is there going to be an update to use UUID's as keys in the future??
Thx
Servoy Certified Developer
Image
rafig
 
Posts: 704
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: 2021.03 Product Update Webinar

Postby sean » Mon Jun 07, 2021 3:20 pm

No, there are no plans to change the primary key columns.
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: 2021.03 Product Update Webinar

Postby rafig » Mon Jun 07, 2021 3:40 pm

sean wrote:No, there are no plans to change the primary key columns.

Ok, thanks ;-)
Servoy Certified Developer
Image
rafig
 
Posts: 704
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK


Return to Announcements

Who is online

Users browsing this forum: No registered users and 13 guests