Add a Steam IdP

On this page
Starter plan required

This feature requires at least a Starter plan.

Available since 1.28.0

Add a Login with Steam button to the FusionAuth login pages. After you configure the Steam Identity Provider, you can enable the button for one or more Applications.

The following login page shows the Steam button:

A FusionAuth login page with a button to log in with Steam.
A FusionAuth login page with a button to log in with Steam.

The following diagram shows a login through Steam on the FusionAuth hosted login pages:

Identity ProviderFusionAuthYour ApplicationUser/BrowserIdentity ProviderFusionAuthYour ApplicationUser/BrowserClick LoginRedirect to the FusionAuth login pageClick the Identity Provider buttonRedirect to the Identity ProviderLog inRedirect to FusionAuth with the login resultFollow the redirect to the FusionAuth callback URLRequest the user's tokens or profileReturn the tokens or profileReconcile, link, and create the user and registration as neededRedirect to your application with an authorization codeFollow the redirectExchange the authorization code for tokensReturn FusionAuth tokens
Identity ProviderFusionAuthYour ApplicationUser/BrowserIdentity ProviderFusionAuthYour ApplicationUser/BrowserClick LoginRedirect to the FusionAuth login pageClick the Identity Provider buttonRedirect to the Identity ProviderLog inRedirect to FusionAuth with the login resultFollow the redirect to the FusionAuth callback URLRequest the user's tokens or profileReturn the tokens or profileReconcile, link, and create the user and registration as neededRedirect to your application with an authorization codeFollow the redirectExchange the authorization code for tokensReturn FusionAuth tokens

A user logs in through an Identity Provider on the FusionAuth hosted login pages.

The user sees only the FusionAuth login page, the login page of Steam, and your application. Your application completes a standard OAuth authorization code grant with FusionAuth, and FusionAuth handles the exchange with Steam.

Create a Steam Account#

Get a client Id and a Web API key from Steam. Steam doesn't offer a self-service client Id. To request a client Id, contact Valve. For the request details, see Steam OAuth.

Steam offers user Web API keys and publisher Web API keys. For more information, see Authentication Using Web API Keys.

Create a Steam Identity Provider#

To enable Steam for an Application or CIMD domain:

  1. In the Admin UI, navigate to Settings -> Identity Providers .

  2. Click the arrow next to the add button, and select Steam .

  3. Select the Tenant for the Identity Provider, or select Global identity provider. You can't change the scope later. For more information, see Identity Provider Scope.

  4. Fill out the form. Your identity provider supplies most of the values. For a description of each field, see Form Fields.

  5. On the Applications tab, turn on Enabled for each Application or CIMD domain that uses the Identity Provider.

  6. To register new users for the Application with the Application's default roles, turn on Create registration. When Create registration is off, a user needs a registration for the Application before the user can log in through the Identity Provider.

  7. Click .

The login page of each enabled Application then shows a login button for the Identity Provider. An Identity Provider with managed domains asks for the user's email address instead of showing a button.

The form to configure a Steam Identity Provider in the Admin UI.
The form to configure a Steam Identity Provider in the Admin UI.

Form Fields#

Id
  • Optional
  • Available since 1.61.0

A UUID for the Identity Provider. When you leave Id empty, FusionAuth generates an Id.

Tenant
  • Optional
  • Available since 1.62.0

The Tenant that the Identity Provider belongs to. When you select a specific tenant on the previous page, FusionAuth shows Tenant. When you select Global identity provider, FusionAuth hides Tenant.

Name
  • Required
  • Available since 1.61.0

A unique name for the Identity Provider. FusionAuth uses the name for display only, and you can change the name later.

Client Id
  • Required

The client Id from Steam.

API mode
  • Optional
  • Defaults to Public
  • Available since 1.44.0

The Steam API that FusionAuth calls. The possible values are:

  • Partner: the Steam partner API, at https://partner.steam-api.com.
  • Public: the public Steam API, at https://api.steampowered.com.

The public API has a rate limit, and the partner API doesn't. When you are a Steam partner, set API mode to Partner. Before 1.44.0, FusionAuth always used the public API.

Web API key
  • Required

The Web API key from Steam. FusionAuth authenticates requests to Steam with the key.

Button text
  • Optional
  • Defaults to Login with Steam

The text of the Steam button on the FusionAuth login page.

Linking strategy
  • Optional
  • Defaults to Create a pending link

How FusionAuth links a Steam user to a FusionAuth user. For more information, see Linking Strategies.

Reconcile lambda
  • Optional

A lambda that maps custom claims from Steam to the FusionAuth User or Registration. To create a lambda, go to Customizations -> Lambdas . For more information, see Lambdas.

Enable debug logging
  • Optional
  • Defaults to false

When you enable debug logging, FusionAuth writes Event Log entries during the login process. Use the entries to debug integration issues.

Tenants#

The Tenants tab limits the number of links that each user in a Tenant can have to this Identity Provider. Links to other Identity Providers don't count toward the limit. On a global Identity Provider, the tab starts empty. To set a limit for a Tenant, click Add tenant configuration . On a tenant-scoped Identity Provider, the tab lists only the Identity Provider's Tenant.

Limit links per user
  • Optional
  • Defaults to false
  • Available since 1.32.0

When turned on, FusionAuth enforces Maximum link count for users in the Tenant.

Maximum link count
  • Optional
  • Available since 1.32.0

The maximum number of links that a user can have to this Identity Provider. When a user reaches the limit, FusionAuth rejects a new link. The Link API returns a 400, and the hosted login pages show an error.

For more information, see Identity Providers and Tenants.

Building Your Own Integration#

To build your own login experience instead of using the FusionAuth hosted login pages, start the Identity Provider flow in your application, and complete the login with the Login API. The following diagram shows the 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
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

Your application starts the Identity Provider login and completes the login with the FusionAuth API.

For the request that completes the login, see the Steam Identity Provider API.

When your application needs a refresh token after the login, turn on Enable JWT Refresh for the Application. In the Admin UI, navigate to Applications -> Your Application -> Security -> Login API settings .