OneDrive connection failed after disconnect method call

Hi,

For some time now, in the TMSFNCCloudMicrosoftOneDrive component, when disconnecting using the ClearToken method followed by Disconnect method, the subsequent attempt to connect to the cloud using the Connect function fails, even though the web screen correctly displays "Application authorized." An AccessDenied event is received with a message indicating that the code is incorrect. It is necessary to clear the browsing history of the default web browser to restore a working connection. I do not encounter this type of problem with other cloud services (the call code is exactly the same).

I am using version 3.7.3 of the FNC Cloud component under Delphi 12 or 13 (same effect).

Hi,

We applied a fix to the authentication code handling. The update will be available with the next TMS FNC Cloud Pack release.

Please note that the "Application authorized" message only confirms that an authentication code was retrieved successfully. After that point, the OnAccessDenied and OnConnected events determine if a valid access token was obtained based on that authentication code.

Thank you.

Is the fix included in today's release 3.7.3.1? I don't see any mention of the fix in the changelog.

Regards,

Yes, the fix is in v3.7.3.1. The changelog was not complete yet, it has now been updated.

1 Like

Great, it’s fixed !

Thanks ! :slight_smile:

Happy to help!
Thanks for informing the issue is fixed.

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