Take a sneak peak of our new documentation Read More
Last Updated: 1/11/2023, 2:52:23 PM

# Two-Factor Authentication

# Overview

AccelByte Cloud’s Two-Factor Authentication provides a second layer of security for user accounts on our platform. Two-Factor Authentication can be enabled for players accessing your game or web platform, or for you and other admin users accessing the Admin Portal.

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

  • Authenticator App: the user 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 user.
  • Email Authentication: a two-factor authentication code is generated and sent to the user’s email each time they log in.

# 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 Up the Email Authentication 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 Email Authentication method.

    two-factor-authentication

  3. The Enable Email Authentication form will appear, and a code will be sent to your registered email address. Enter the code into the Verification code text box.

    two-factor-authentication

  4. When you’re done, click Activate. The Email Authentication method is now enabled.

    two-factor-authentication

# Set Default Two-Factor Authentication

NOTE

You can only set a default two-factor authentication method if you have already configured multiple authentication methods.

  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. 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.