Authentication components Gives Access Violation in IW 12.1.25 and 12.1.26

I'm an IW Ultimate Licensed User


Hi i wanted to make some test with the authentication feature, I used the latest Athentication demo it comes from the Codeplex site, but ti seems it gives an AV after giving the username and password. it seems the WebApplication object is nil at the event

function TIWServerController.IWAutherEvent1Check(const aUser,
aPass: string): Boolean;
begin
Result := TIWUserSession(WebApplication.Data).CheckUser(aUser, aPass);
end;

so when trying to call the 'data' property it give and AV.

Is this a bug of the demo or how can i fix this? I need to implement this feature in a production application.

I'm using delphi XE IW 12.1.26 Ultimate, latest demos, and tested in Chrome, firefox 10 and IE 8 and later

Maybe THe IW installation takes my key as not Ultimate Bundle and compiles without authentication feature.
0
Utf
3/24/2012 4:58:29 AM
embarcadero.delphi.intraweb 3901 articles. 1 followers. Follow

4 Replies
659 Views

Similar Articles

[PageSpeed] 26

I already repeatedly asked this question, but the answer didn't receive.
For itself it solved so:
{code}
unit ServerController;

interface

uses
  SysUtils, Classes, IWServerControllerBase, IWBaseForm, HTTPApp,
  // For OnNewSession Event
  UserSessionUnit, IWApplication, IWAppForm, IWAuther, IWAutherEvent;

type
  TIWServerController = class(TIWServerControllerBase)
    IWAutherEvent1: TIWAutherEvent;
    procedure IWServerControllerBaseNewSession(ASession: TIWApplication;
      var VMainForm: TIWBaseForm);
    function IWAutherEvent1Check(const aUser, aPass: string): Boolean;

  private
    function CheckUser(aUserName, aPassword: string): boolean;
  public
  end;


  function UserSession: TIWUserSession;
  function IWServerController: TIWServerController;

implementation

{$R *.dfm}

uses
  IWInit, IWGlobal;

function IWServerController: TIWServerController;
begin
  Result := TIWServerController(GServerController);
end;

function UserSession: TIWUserSession;
begin
  Result := TIWUserSession(WebApplication.Data);
end;

function TIWServerController.CheckUser(aUserName, aPassword: string): boolean;
begin
  Result := aUserName = aPassword;
end;

function TIWServerController.IWAutherEvent1Check(const aUser,
  aPass: string): Boolean;
begin
  if AuthBeforeNewSession then
    Result := CheckUser(aUser, aPass)
  else
    Result := TIWUserSession(WebApplication.Data).CheckUser(aUser, aPass);
end;

procedure TIWServerController.IWServerControllerBaseNewSession(
  ASession: TIWApplication; var VMainForm: TIWBaseForm);
begin
  ASession.Data := TIWUserSession.Create(nil);
end;


initialization
  TIWServerController.SetServerControllerClass;

end.
{code}

> {quote:title=Francisco Armando Dueñas Rodriguez wrote:}{quote}
> I'm an IW Ultimate Licensed User
> 
> 
> Hi i wanted to make some test with the authentication feature, I used the latest Athentication demo it comes from the Codeplex site, but ti seems it gives an AV after giving the username and password. it seems the WebApplication object is nil at the event
> 
> function TIWServerController.IWAutherEvent1Check(const aUser,
> aPass: string): Boolean;
> begin
> Result := TIWUserSession(WebApplication.Data).CheckUser(aUser, aPass);
> end;
> 
> so when trying to call the 'data' property it give and AV.
> 
> Is this a bug of the demo or how can i fix this? I need to implement this feature in a production application.
> 
> I'm using delphi XE IW 12.1.26 Ultimate, latest demos, and tested in Chrome, firefox 10 and IE 8 and later
> 
> Maybe THe IW installation takes my key as not Ultimate Bundle and compiles without authentication feature.
0
Igor
3/24/2012 6:59:14 AM
> Is this a bug of the demo or how can i fix this? I need to implement this feature in a production application.

As this demo uses Session, you need to check if the 
AuthBeforeNewSession(ServerController) is False. Last time I checked 
this demo, that property was set to True, which makes the demo fail.

I already updated the demo on CodePlex
0
Jackson
3/24/2012 1:34:36 PM
> I already repeatedly asked this question, but the answer didn't receive.

can you show me your post, please?
0
Jackson
3/24/2012 1:35:12 PM
> {quote:title=Jackson Gomes wrote:}{quote}
> > I already repeatedly asked this question, but the answer didn't receive.
> 
> can you show me your post, please?

https://forums.embarcadero.com/thread.jspa?threadID=68754&tstart=15
https://forums.embarcadero.com/thread.jspa?threadID=68966&tstart=45
0
Igor
3/24/2012 1:46:01 PM
Reply:

Similar Artilces:

[BUG] Authentication Demo gives access violation with IW 12.1.25 [Edit]
Hi i wanted to make some test with the authentication feature, I used the latest Athentication demo it comes from the Codeplex site, but ti seems it gives an AV after giving the username and password. it seems the WebApplication object is nil at the event function TIWServerController.IWAutherEvent1Check(const aUser, aPass: string): Boolean; begin Result := TIWUserSession(WebApplication.Data).CheckUser(aUser, aPass); end; so when trying to call the 'data' property it give and AV. Is this a bug of the demo or how can i fix this? I need to implement this feature in a prod...

Errors in DBD-Oracle 1.12 using DBI 1.26, OK with DBI 1.25
Platform: Windows 2000 Perl: ActiveState Perl 5.6.1 build 629 ---------------------------------------------------------------------------- ---- USING DBI 1.25 ---------------------------------------------------------------------------- ---- C:\temp\DBD-Oracle-1.12>nmake test Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. C:\bin\Perl\bin\Perl.exe -Mblib -IC:\bin\Perl\lib -IC:\bin\Perl\lib -e " use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;" t\bas...

Please ignore IW 12.1.28 and wait for 12.1.29
The session timeout event doesn't behave correctly in this release A SVN update was lost after the server crash. There shoud be a new version 12.1.29 should be Mon/Tue sean webb wrote: > The session timeout event doesn't behave correctly in this release > A SVN update was lost after the server crash. > > There shoud be a new version 12.1.29 should be Mon/Tue Was that last Mon/Tue? :) Any idea when this will be available? AFAIK 12.1.29 is in testing should be out shortly. > > Any idea when this will be available? > {quote:title=sean web...

Was impatient for 12.1, so 12.1 RC to be
Yesterday my patient for waiting 12.1 ended and decide to download the RC. To start with critics - there's no progress-bar/animation on boot time :( However, the look of the live CD desktop absolutely compensate for that. I decide that it won't hurt to install on actual hard drive. After nice install and autoconfig, there's come the KDM log-in screen...Oh, Lord! Was I totally blown away? Oh, yes! The log-in, and the transition to the desktop is the most slick experience of that kind that any OS has today(on top of my head the most polish and beautiful of all time). With ...

Do I need to install 12.5.1 GA before 12.5.1 ESD #1
I've fallen a little behind with upgrades, and am still on 12.5.0.3 EBF 11339 (Win 2K Server), so following the recent security alert, i've decided to upgrade to 12.5.3. My question is - can I skip most/all of the intermediate releases or do I need to install each individual release/EBF between 12.5.0.3 and 12.5.3? For instance, in the 12.5.1 ESD #1 release, the readme file says that you must already be at 12.5.1 to install it - If this is true, where do I get the 12.5.1 GA from - it's not available as a download! TIA, BB Release Terminology: EBF: An official sof...

IW 12.1.16 and frame component Delphi XE2
The frame component in standard palette is not available to use in Delphi XE2. I did the following test 1 - Create a new Intraweb application 2 - Create a new IW Frame 3 - Open the main form 3 - Click on standard palette and the frame component is not available. How can I enable the frame component? Rgds Roberto Chostakovis > How can I enable the frame component? this is an XE2 issue and we are looking into this problem now... > {quote:title=Jackson Gomes wrote:}{quote} > > How can I enable the frame component? > > this is an XE2 issue and we are ...

Delphi xe2 and IW ver 12.2.12.1 "ISAPI is not available in your license." [Edit]
Hi I'm a registered user of delphi from delphi 1 to delphi xe2 and I've upgrade IW to the last version, on intraweb site there is "Free Updgrades for Bundled Users - RAD Studio XE2". After I've removed old Intraweb library with removal tool, I've installed the last release and now when I compile my ISAPI project I get this error "ISAPI is not available in your license." why I should buy an Intraweb license only because I've upgraded to the last version or there is a solution? Thanks Edited by: Stefano Coluccia on Jan 23, 2013 8:44 AM Edited by: St...

report = IW 12.1.25 e Delphi XE2 Update 4 + IE9
IE9 and Updating Delphi XE2 with Update 4, the message came back: "Socket error # 10054 Connection reset by peer" On 2/29/2012 10:39 AM, jorge luis beluco wrote: > IE9 and Updating Delphi XE2 with Update 4, the message came back: > "Socket error # 10054 Connection reset by peer" Are you seeing this only in the IDE? If so this is normal and not specific to XE2 nor Update 4. -- "Programming is an art form that fights back" IntraWeb IRC and Web Chat: http://www.atozed.com/intraweb/Support/IRC.aspx ...

Smoke [5.12.1] v5.12.1 FAIL(Mm) MSWin32 Win2000 SP4 (x86/1 cpu)
Automated smoke report for 5.12.1 patch b85be81e3471288c8c432533cfaf3713e28= 157e9 v5.12.1 perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2926 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 59 minutes 51 seconds (average 7 minutes 29 seconds) Summary: FAIL(Mm) O =3D OK F =3D Failure(s), extended report at the bottom X =3D Failure(s) under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D make (aft...

Smoke [5.12.1] v5.12.1 FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)
Automated smoke report for 5.12.1 patch b85be81e3471288c8c432533cfaf3713e28= 157e9 v5.12.1 perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~3673 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 18 minutes (average 32 minutes 19 seconds) Summary: FAIL(F) O =3D OK F =3D Failure(s), extended report at the bottom X =3D Failure(s) under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D make (after ...

Smoke [5.12.1] v5.12.1 FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu) #2
Automated smoke report for 5.12.1 patch b85be81e3471288c8c432533cfaf3713e28= 157e9 v5.12.1 perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2926 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 9 minutes (average 31 minutes 8 seconds) Summary: FAIL(F) O =3D OK F =3D Failure(s), extended report at the bottom X =3D Failure(s) under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D make (after mi...

Smoke [5.12.1] v5.12.1-19-g69d3e0c FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)
Automated smoke report for 5.12.1 patch 69d3e0cf7e09cf7b85af962849cdf01814c= 0789a v5.12.1-19-g69d3e0c perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2926 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 9 hours 4 minutes (average 1 hour 8 minutes) Summary: FAIL(F) O =3D OK F =3D Failure(s), extended report at the bottom X =3D Failure(s) under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D make (...

Smoke [5.12.1] v5.12.1-62-ga812667 FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)
Automated smoke report for 5.12.1 patch a812667ac70fa062909d32a87ad9c756098= c49bf v5.12.1-62-ga812667 perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2926 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 16 minutes (average 32 minutes 4 seconds) Summary: FAIL(F) O =3D OK F =3D Failure(s), extended report at the bottom X =3D Failure(s) under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D m...

Smoke [5.12.1] v5.12.1-82-gb1af92d FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)
Automated smoke report for 5.12.1 patch b1af92da3fa8077584cf0263a13b5f4c722= 6fbb3 v5.12.1-82-gb1af92d perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2926 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 9 hours 4 minutes (average 1 hour 8 minutes) Summary: FAIL(F) O =3D OK F =3D Failure(s), extended report at the bottom X =3D Failure(s) under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D make (...

Web resources about - Authentication components Gives Access Violation in IW 12.1.25 and 12.1.26 - embarcadero.delphi.intraweb

Authentication - Wikipedia, the free encyclopedia
Authentication (from Greek : αὐθεντικός authentikos , "real, genuine," from αὐθέντης authentes , "author") is the act of confirming the truth ...

Authentication - Facebook-Entwickler
Please note: On October 3, 2012, the offline_access permission will be removed. If you are building...

Facebook Adds Two Factor Authentication for Login and Redesigns Family Safety Center
... announced the release of several new tools to help users stay safe while using the site. Soon, users will be able to enable two factor authentication ...

Lockdown - A better two-factor authentication experience on the App Store on iTunes
Get Lockdown - A better two-factor authentication experience on the App Store. See screenshots and ratings, and read customer reviews.


YouTube - How To Hack Twitter's New Two Factor Authentication
Veröffentlicht am 23.05.2013 Connect! http://toopher.com http://facebook.com/toopherinc http://twitter.com/toopher CEO Josh Alexander wants ...

SafeNet brings Cloud-based authentication service to A/NZ
SafeNet has released its new Cloud-based authentication service, billed as Authentication-as-a-Service, in A/NZ.

Two-factor authentication - cyber security -
Two recent hacking cases highlight how personal emails can impact overall business security through tiny weaknesses.

Digital authentication to become Google's next big focus
Streamlining the website login process a top priority, according to the company’s Australian business and consumer services manager Dan Metcalf. ...

Two-factor authentication: double or nothing
An extra layer of security keeps hackers at bay.

Resources last updated: 12/5/2015 9:46:38 PM