Skip to content

Delphi Labs: DataSnap XE Authentication and Authorization for Dummies:-)

"Delphi Labs" is proud to announce the immediate availability of the new episode in the "DataSnap XE" serie: "Authentication and Authorization"! This work was scheduled for last week, but I hope to be back on track and just starting to work on the this week’s episode on DataSnap filters.

The most challenging thing this week was to invent a possibly the most simple scenario of role-based security for a DataSnap server. I have end up with just implementing a basic authentication rule, that only users that provide a non-empty username are authenticated. Once you are authenticated, you should be assigned to roles. In my scenario if your username is "admin" then you are added to "admins" role, which is the only role that can call "ReverseString" server method.

The demo is as simple as possible and the associated EDN article is very much like a "demo script" that we are using for live developer events. The source code is on CodeCentral and there are two YouTube episodes that show building the secure server and client.

Did I mention that DataSnap is a feature of Delphi Enterprise (or Architect)? It is not available in the Professional version. But no worries! Until the end of March 2011 there is the worldwide promotion for Delphi developers willing to upgrade from Professional to Enterprise! Check with you local reseller for details!



"Delphi Labs: DataSnap XE - Authentication and Authorization"

{ 3 } Comments

  1. Sebastian Gingter | February 9, 2011 at 7:50 pm | Permalink

    How does DataSnap scale vertically between loadbalanced servers? Especially with authentication - how do you transfer sessions for subsequent requests between servers?

  2. Keith | February 9, 2011 at 8:35 pm | Permalink

    Hey Pawel,

    This looks great. I will study it tonight after work.

    Thanks again,

    Keith

  3. Paweł Głowacki | February 10, 2011 at 9:25 am | Permalink

    @Sebastian, this has to be done programatically as there is no support auto-transfer of sessions, they just live in a server until a client disconnects. Check out http://www.andreanolanusse.com/blogen/implementing-failover-and-load-balancing-in-datasnap-2010/

Post a Comment

Your email is never published nor shared. Required fields are marked *

Bad Behavior has blocked 2 access attempts in the last 7 days.

Close