Can't successfully run WebClient from re-compile in Sphinx Simple Demo project

I had an issue with the WebClient of the Sphinx Simple Demo. I changed this in WebCore to resolve my issue.

Scott

  //2023-09-15 sdm: match sphinx working version 20006
  //       project: TMS WEB Core RSXE14/Core Source
  //          file: WEBLib.forms.pas
  // original line: 4298
  if Assigned(OnOAuthToken) then
  begin
   // there is a code callback
    if (FParameters.IndexOfName('code') <> -1) and HandleOAuth then
    begin
  //    if Assigned(OnOAuthToken) then
      OnOauthToken(Self, query);

      FIsRedirect := true;
      token := FParameters.Values['code'];
      asm
        if (window.opener && window.opener.processAuthData){
          window.opener.processAuthData(token);
          window.close();
        }
      end;
    end;
  end;

Hi @MONSEES_SCOTT, welcome to TMS Support Center!

Thanks for contribution, we will review your code and see if and how it can be used.

Actually the solution now is to set HandleOAuth property to False at the beginning of your application, for example, in the .dpr file:

begin
  Application.HandleOAuth := False;
  Application.Initialize;
1 Like

Just to be clear, this is your sample application, not mine.

I can verify that your solution works when I added the line above into WebClient.dpr located in the "...\registered\TMS Sphinx\Demos\Simple\WebClient" folder.

Thank you for your prompt reply,
Scott

1 Like

Correct, actually we have fixed things here in a different way. But just for you to know how to workaround it with the current version.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.