A Steam integration from VulCode adds Steam sign-in to game server websites and links the player's site account with their in-game account by SteamID. It costs from PLN 999 (about EUR 220) and usually takes 2-3 days. The Steam Web API supplies the nickname, avatar, playtime and ban information, and the panel, item shop and rewards run on that.

  • Steam

Steam integration: Steam login and the Steam Web API

Steam as a login provider

Steam supports OpenID 2.0. After sign-in the site gets the player's 64-bit SteamID and nothing else.

Steam login gives no email and no profile. It gives certainty that the player controls the account with a given SteamID. The rest, name, avatar, playtime and bans, we fetch separately from the Steam Web API with a key kept on the server.

On game servers the SteamID is usually already the key in the database: in permissions, stats and bans. So linking the site to the game by SteamID is natural and needs no codes typed by the player.

OpenID endpoint
https://steamcommunity.com/openid/, as given in the Steamworks docs.
100,000 a day
That many Steam Web API calls are allowed by the key's terms of use.

Steam login step by step

The most important is step four: without check_authentication a SteamID can be forged.

PlayerYour siteSteam OpenIDSteam Web API
Player → Your site
clicks "Sign in with Steam"
Your site → Steam OpenID
redirect to Steam sign-in
Steam OpenID → Your site
return with openid.* parameters
Your site → Steam OpenID
check_authentication with the same parameters

without this step the SteamID can be forged

Steam OpenID → Your site
is_valid:true
Your site → Steam Web API
GetPlayerSummaries for the SteamID
Steam Web API → Your site
name, avatar, profile visibility

The Steam Web API methods we use

Player data after sign-in. Some of it depends on profile privacy settings.

MethodWhat it returnsWhat for
ISteamUser/GetPlayerSummaries v2name, avatar, profile URL, visibility, up to 100 players at oncethe profile in the panel and leaderboard
IPlayerService/GetOwnedGamesgames and playtime, if visiblerewards for playtime
ISteamUser/GetPlayerBansVAC and game bans, days since the last banserver access decisions
IPlayerService/GetSteamLevelthe Steam account levela threshold for new accounts, e.g. in giveaways
ISteamUser/CheckAppOwnershipwhether the player owns a given gameonly for the game's publisher, with a publisher key

What the SteamID ties together on the site and in game

One player account everywhere.

SteamSite, panel, game server

Player identity

Steam login

Name and avatar

login and a periodic refresh

Playtime

a periodic job, if the profile shows it

Item shop purchases

a payment on the site

the item or rank reaches the server by SteamID

Bans

login or joining the server

05

What we watch out for with Steam

Mistakes that open player accounts to takeover or end in a blocked key.

  1. 01

    Security

    Always check_authentication

    A SteamID from the URL without Steam's confirmation can be forged with one URL edit.

  2. 02

    The Web API key on the server only

    A key in front-end code would be taken by anyone who opens the browser dev tools.

  3. 03

    Profile cache

    With 100,000 calls a day, asking Steam on every page view quickly uses up the limit.

  4. 04

    Private profiles

    Playtime is available only when the data is visible. Playtime rewards show a clear message when the profile hides it.

  5. 05

    Batched requests

    GetPlayerSummaries takes up to 100 SteamIDs at once, so we refresh leaderboards in batches.

Example: playtime rewards on a server

The rollout, step by step.

Scenario

00 / 04

Steps

  1. 01 Steam login
  2. 02 Playtime from the server
  3. 03 Rewards
  4. 04 Abuse protection

Step 01 of 04

Steam login

The site account appears at first login, with SteamID, name and avatar straight away.

Step 02 of 04

Playtime from the server

Playtime on your server is counted by the server itself by SteamID. Steam data is only an extra when the profile shows it.

Step 03 of 04

Rewards

Past a threshold the panel grants a reward, and the server hands it over at the player's next join.

Step 04 of 04

Abuse protection

Accounts with a VAC ban or very new accounts are excluded from giveaways, by your rules.

Result

The player signs in once, and the site, panel and server know who they are, with no SteamID to type.

Common questions about Steam integration

The main questions about Steam: player email, the API key, Discord, cost and code.

Will we get the player's email?
No. Steam login returns only the SteamID. If an email is needed, e.g. for invoices, we ask for it separately.
How long does it take?
Usually 2-3 days. The exact dated schedule comes with the free quote, and if anything is going to move, you know in advance.
How much does Steam login on a game server website cost?
A Steam integration costs from PLN 999 (about EUR 220) under our API and integrations service and usually takes 2-3 days. The figure depends on whether the profile and playtime from the Steam Web API, linking to the in-game account, panel and item shop rewards are included. The quote is free and comes back within an hour.
Can Steam be combined with Discord login?
Yes. One site account can link a SteamID and a Discord account, e.g. so a game rank grants a Discord server role.
Is a Steam Web API key paid?
No, the Steam Web API key is free. You create it on your Steam account, and the terms of use allow 100,000 calls a day.
Will the Steam integration code be mine?
Yes. Once the work is accepted and paid in full, the economic copyright in the integration code passes to you and you get the repository with run instructions. Open source libraries keep their own licences.
How do you check Steam login before launch?
On a copy of the site and a test Steam account. We check a first sign-in, a forged return without check_authentication, a private profile and an account with a VAC ban, and only then switch the login on in production.
What if the Steam integration stops working?
The integration logs every operation and retries the ones that failed by itself. When the problem does not go away you get a notification, and bugs that come from our work are fixed free of charge within the 90 days of support after launch.
What if Steam changes its API?
We adjust the integration to Steam's changes: within the 90 days of support included after launch, later under a maintenance plan or as a separate short order. We follow Steam's change notices and tell you in advance what needs fixing.

Sources

Technical details come from the Steamworks documentation and the OpenID spec.

Describe your project.

A free quote comes back within an hour during working hours.