Last Updated: 4/11/2022, 6:25:12 AM

# Two-Factor Authentication

# Overview

Two-Factor authentication provides a second layer security for user accounts on our platform. When a player logs into their account with two-factor authentication enabled, they must provide both their credentials and the two-factor authentication code from their selected preferred method.

AccelByte offers two different types of two-factor authentication to choose from:

  • Authenticator App: the player retrieves their real-time two-factor authentication code from an authenticator app each time they log in.
  • Backup Code: a two-factor authentication code is generated from our service and stored manually by the player.

# Managing Two-Factor Authentication in the Admin Portal

# Setting Up the Authenticator App Method

  1. In the Admin Portal, open the My Account menu in the top-right corner of the screen and click Password & Security.

    two-factor-authentication

  2. On the Password & Security page, scroll down to Two-Factor Authentication and click Enable next to the Authenticator App method.

    two-factor-authentication

  3. The Enable Authenticator App form will appear. Follow the instructions provided.

    two-factor-authentication

  4. Once completed, click the Activate button.The Authenticator App method is now enabled.

    two-factor-authentication

# Setting Up the Backup Code Method

  1. In the Admin Portal, open the My Account menu in the top-right corner of the screen and click Password & Security.

    two-factor-authentication

  2. On the Password & Security page, scroll down to Two-Factor Authentication and click Enable next to the Backup Codes method.

    two-factor-authentication

  3. The Backup Code method is now enabled. The Your Backup Codes window will appear with 10 backup codes for you to use. Click Download Code to save your backup codes. Click Generate New Codes to generate 10 new codes for use.

    two-factor-authentication

NOTE

Each code can be only used once.

# Set Default Two-Factor Authentication

NOTE

You can only set a default two-factor authentication method if you have already configured both the authenticator app and backup codes methods.

  1. In the Admin Portal, go to My Account and open the Password & Security page. Under the Two-Factor Authentication section, set the default two-factor authentication method by clicking the Make this my default Two-Factor authentication method box under your preferred method.

    two-factor-authentication

# Implementing Two Factor Authentication Using the SDK

# Player Login with Username and Password with Two-Factor Authentication Enabled

These functions allow your players to log into your game using a verified account with two-factor authentication enabled.

# Third-Party Authentication App

Before a player can log in, you will need to enable two-factor authentication with your third-party authentication app.

# Backup Code

Before a player can log in, you will need to enable two-factor authentication with the Backup Code method and save this backup code.

# Log in with Third-Party Platform Credentials with Two-Factor Authentication Enabled

These functions allow your players to log into your game using a verified account linked with a third-party account.

# Third-Party Authentication App

Before a player can log in, you will need to enable two-factor authentication with your third party authentication app.

# Backup Code

Before a player can log in, you will need to enable two-factor authentication with the Backup Code method and save this backup code.

  • Read more about Authorization and Authentication to know more about how Authorization and Authentication operate in our services.
  • Read more about Third Party Logins to find out more about third-party login platforms that can be integrated with our services.