Account and team

How to switch on two-factor sign-in

For administrators and every user: add an authenticator app, scan the code under Password and two-factor, confirm with a 6-digit code, and move scripts from HTTP Basic to API tokens.

Ashish Srivastava4 min read

A man at a kitchen table at dawn holds his phone in one hand, its screen turned away, a laptop half open beside a cup of tea

To switch on two-factor authentication for your GPS tracking account, install an authenticator app on your phone, open Settings → Your account → Password and two-factor, scan the code shown under Two-factor login, and enter the 6-digit code from the app to turn it on. From then on every password sign-in asks for your password and a code from your phone. This guide is for administrators and for any user who wants that second step; it ends with what changes for scripts that call the API.

Before you start

  • An authenticator app on your phone that makes 6-digit time-based codes (any of the common ones do).
  • The portal open over https: the code is checked in your browser before it is saved.
  • The clock on your phone set automatically: codes depend on the time.

1. Install an authenticator app

Install an authenticator app from your phone's app store if you don't use one yet. You need nothing else: no account at the app's maker and no mobile data at sign-in, because the codes are made on the phone itself.

2. Open your account settings and start the setup

In the portal, open Settings → Your account → Password and two-factor. The card Two-factor login shows Off, with the setup panel below it. If the card is missing, your server does not offer two-factor login: an administrator switches it on for the server.

The Password and two-factor page with the two-factor setup: a QR code, the key, the code field and Turn on
Scan the code with your authenticator app, enter the 6-digit code and choose Turn on.

3. Scan the code and confirm with a 6-digit code

In the app, add a new account and scan the QR code under Scan with an authenticator app, or type the key. If you can't scan, choose Copy key and type the key into the app. The app then shows a 6-digit code that changes every 30 seconds. Type the current one into Code from the app and choose Turn on.

The portal checks the code before it saves the key, because a key scanned wrongly would lock you out. If it says the code doesn't match, check that the phone's time is right, or scan the code again. When it works, the card says Your authenticator is set up.

4. Sign out and in again to test

Sign out and sign in again with your password. The sign-in page now asks for the code from your app as a second step. Test it now, while you still remember what you did, rather than on a busy morning.

If you change phones, use New key on the same card: scan the new code on the new phone and the old one stops working when you save.

5. Ask each team member to do the same

Each person switches on two-factor sign-in for their own account, following steps 1 to 4. Administrators can go further: under the server's access and sign-in settings, Required two-factor login makes the second step compulsory, and the operator of an installation can require it for every new account. While it is required, people can't remove their own key.

The server's access and sign-in settings, including the switch that requires two-factor login
Administrators can require two-factor login for everyone on the server.

When someone loses their phone, an administrator opens their page under Users and roles and chooses Remove key. They then sign in with the password alone and set up a new key. While two-factor login is required, only administrators can remove a key, not managers.

A user's page with the two-factor section and the Remove key button for a lost phone
For a lost phone, an administrator removes the key; the user then sets up a new one.

6. Move scripts that used HTTP Basic to API tokens

Two-factor sign-in changes how programs reach your account: HTTP Basic (sending your email and password with each request) no longer works for an account with two-factor login. Scripts and integrations that used it must switch to an API token:

  1. On Password and two-factor, under API tokens, pick an expiry date (7 days by default, at most a year) and choose Create token.
  2. Copy the token at once: it isn't shown again, and there is no list of tokens, so note where you use each.
  3. Put the token in the script instead of the password, as the API documentation describes.

The token acts as you. To stop one, paste it under Revoke a token.

Locked out after wrong passwords

Sign-in protection works alongside two-factor login. After 10 wrong passwords in a row an account is locked for 30 minutes by default; administrators can change both numbers, and managers can make them stricter for their own users. The sign-in page says until when the lock lasts. An administrator, or whoever manages the account, can unlock it sooner, and a password reset link ends the lock too. Sessions that are already open keep working.

Single sign-on accounts

If you sign in with your company account, Alongpin does not ask for a code: your company's sign-in handles the second step. See how we protect accounts and the users and roles overview for how the pieces fit together.

Account and team

A dispatcher's first day on the live map

For dispatchers with a new login: the four states, keeping several vehicles in focus, the movement line, reading a vehicle's speed and last report, replaying this morning, and acknowledging alarms.

Ashish Srivastava4 min read

Account and team

How to choose a package and subscribe

For whoever pays: per-device and whole-account packages, billing details, the first invoice with tax before you confirm, and paying by card, PayPal, Razorpay or bank transfer.

Ashish Srivastava4 min read

Put your first device on the map today

Book a demo if you would rather see it with your own use case first. Choose a package in the portal; you see the first invoice before you confirm.

Chat with us