🤖 For AI agents: The complete documentation index is available at /docs/llms.txt. A markdown version of this page is available at /docs/lifecycle/authenticate-users/identity-providers/gaming/epic-games.md.

Add an Epic Games IdP

This feature is only available in paid plans. To learn more, see our pricing page.

Available since version 1.28.0

This section explains how to add a Login with Epic Games button to FusionAuth. Below is an example login page with the Epic Games Identity Provider enabled.

Once you have completed this configuration you will be able to enable the Epic Games login button for one or more FusionAuth Applications. Below is an example login page with the Epic Games Identity Provider enabled.

Here's a diagram of the login flow between:

  • the user
  • your application
  • FusionAuth and
  • a remote identity provider
ProviderFusionAuthAppUser/BrowserProviderFusionAuthAppUser/BrowserUser Is Logged In And App Can ProceedDelivering Data And FunctionalityView Initial PageClick LoginDisplays Login PageIncluding Link To 'Login With Provider'Clicks On 'Login With Provider'Redirect To Provider Authorization URLEnters CredentialsValidate CredentialsRedirect to App With Authorization CodeRequests Page, Has Authorization CodeCalls Complete LoginWith Code And Redirect URIExchanges Code AndRedirect URI For Provider TokenReturns Provider TokenStores Provivider Token, Calls Lambda, Creates User And Registrations (If Needed), Generates FusionAuth TokensReturn FusionAuth TokensCreate Session OrOtherwise Log User In

Although this looks complex, the user only sees a few screens, such as the FusionAuth login screen, the provider login screen, and your application.

Create an Epic Games Account#

Follow instructions for obtaining a Client id and Client secret from the Epic Games documentation.

Create an Epic Games Identity Provider#

To enable Epic Games for an Application:

  1. Navigate to Settings -> Identity Providers .

  2. Click the Add provider dropdown and select Epic Games . This will take you to the Add Epic Games screen.

  3. Fill out the required fields; your identity provider can provide most of these values. For more information about the fields required for each identity provider, see the documentation for your provider.
  4. In the Applications configuration section at the bottom of this panel, find your application name.

  5. To dynamically create FusionAuth user accounts (with default roles) for all users who successfully authenticate using this provider, select Create registration . If you disable this option, only an administrator with registration permissions can create new users for this application with access via Sign in with Epic Games.

  6. You should now see the Sign in with Epic Games button on the login page for the Pied Piper application.
Add Epic Games

Epic Games Home

Epic Games Home

Form Fields

IdoptionalAvailable since 1.61.0

An optional UUID. When this value is omitted a unique Id will be generated automatically.

TenantoptionalAvailable since 1.62.0

The tenant to which this identity provider belongs. This field only displays when the user selects a specific tenant on the previous page. When Global identity provider is selected on the previous page, this field does not display.

NamerequiredAvailable since 1.61.0

A unique name to identify the identity provider. This name is for display purposes only and it can be modified later if desired.

Client Idrequired

The unique client identifier obtained from Epic Games. See Epic Games - Getting Started.

Client secretrequired

The client secret obtained from Epic Games and used to authenticate the request. See Epic Games - Getting Started.

Button textoptional

The text to be displayed in the button on the login form. This value is defaulted to Login with Epic Games but it may be modified to your preference.

Linking strategyoptionalDefaults to Create a pending link

The linking strategy for the Epic Games provider. See Linking Strategies for more.

Reconcile lambdaoptional

A lambda maps custom claims returned from Epic Games to the FusionAuth User or Registration. To create or configure a lambda, navigate to Customizations -> Lambdas . See the lambda documentation for more.

Enable debug loggingoptionalDefaults to false

Enable debug to create event log entries during the user login process. This will assist you in debugging integration issues.

Building Your Own Integration#

If you are building your own login experience, you'll want to start the identity provider flow yourself and then complete the login.

You might do this if you are using the Login API rather than using the hosted FusionAuth login pages. Here's a diagram illustrating this login flow:

ProviderFusionAuthAppUser/BrowserProviderFusionAuthAppUser/BrowserUser Is Logged In And App Can ProceedDelivering Data And FunctionalityView Initial PageClick LoginDisplays Login PageIncluding Link To 'Login With Provider'Clicks On 'Login With Provider'Redirect To Provider Authorization URLEnters CredentialsValidate CredentialsRedirect to App With Authorization CodeRequests Page, Has Authorization CodeCalls Complete LoginWith Code And Redirect URIExchanges Code AndRedirect URI For Provider TokenReturns Provider TokenStores Provider Token, Calls Lambda, Creates User And Registrations (If Needed), Generates FusionAuth TokensReturn FusionAuth TokensCreate Session OrOtherwise Log User In

If you require a refresh token after completing the login, ensure Enable JWT Refresh is true in the application configuration. This is found in the administrative user interface by navigating to Applications -> Your Application -> Security -> Login API settings .