Skip to content

How do I use Two Factor Authentication with TBE?

Although it is possible to use two-factor authentication with TBE (see latter part of this knowledgebase article), you should be aware of the following:

Two factor authentication requires a two stage log in process:

1. Log in using your Betfair username and password
2. Enter a verification code

Since TheBetEngine cannot automatically generate a verification code, the login process will fail.

TheBetEngine needs to be able to log back in to Betfair if your session is terminated unexpectedly.  If you have two factor authentication enabled on your account then this process will fail as a verification code cannot be generated automatically (that's the whole point of two-factor authentication!)

As repeated failed attempts to log in can result in your Betfair account becoming locked so, if you have two-factor authentication enabled, TheBetEngine will not attempt to log in again.

You, therefore, have a choice to make:

1. Enable two-factor authentication and accept that, if your Betfair session fails, TheBetEngine will not be able to recover the session and bets will not be placed.
or
2. Don't enable two-factor authentication and allow TheBetEngine to recover failed sessions where possible.


Enabling two-factor authentication
From version 2.9.5.6 onwards, new users are asked whether their accounts have two-factor authentication enabled when they first install TheBetEngine. TheBetEngine will then configure itself accordingly.

If you are already using TheBetEngine and you decide to enable two-factor authentication on your account, then you should configure TheBetEngine by:

1. Clicking on the Settings menu]
2. Ticking the Enable 2-FA checkbox and clicking on Save
3. Turning off TBE
4. Enable two-factor authentication on your Betfair account
5. Start up TBE

With two-factor authentication enabled, you will go through a slightly modified login procedure on TheBetEngine. Instead of seeing the standard login dialog box, you will be prompted to enter your TBE account name and then you will be passed to Betfair in order to login in and enter your verification code. Once those have been entered and Betfair has logged you in, then TheBetEngine will display its main screen as per normal.


What do I do if I cannot log in to TBE to adjust my two-factor authentication settings?
In this case, please follow these instructions:

1. Go to the TBE installation folder (by default, this will be C:\BetDynamics\TheBetEngine)
2. Locate the file called NoTwoFactor.cfg and RENAME it to TwoFactor.cfg
3. Start up TBE



Feedback and Knowledge Base