Idea

Tim Schönberger avatar image
Tim Schönberger suggested

Steam Account Linking from website

Hi, I've been digging around extensively on how to get our game-website to handle account linking and I've hit a wall when it comes to allow a user to link their Steam account.

Feature request

Create api endpoint similar to how we can sign in a steam user using the Server/LoginWithSteamId, having an equivalent of that for linking an account would seem obvious.

Example:

POST Server/LinkSteamAccountWithSteamId

Header: X-SecretKey

RequestBody:

 { 
   SessionTicket: string, // Playfab Session Ticket
   SteamId: number,      // SteamId
   ForceLink: boolean    // Same Forcelink as the other account linking calls
 }

Use Case

The game would login directly to Steam and any other provider through their respective SDK integrations. The website would allow for login and account linking. See flow below

Login

Game steps

 SteamSDK get SessionTicket 
 POST Client/LoginWithSteam 
 Receive valid PlayFabSessionTicket.

Website steps (https://partner.steamgames.com/doc/features/auth#website)

 User clicks "Login with Steam"
 User is redirected to steam login page
 User logs in on steam login page and is redirected back to the game-website 
 Validate data returned in query string 
 Extract SteamId 
 POST Server/LoginWithSteamId 
 Receive valid PlayFabSessionTicket.

Account Linking - Intended to be handled from the website only

Website

 Login using playfab or other method.
 Receive valid PlayFabSessionTicket.
 User clicks the Link Steam Account button (on game-website)
 Redirect to steam login page
 User logs in on steam login page and is redirected back to the game-website
 Validate data returned in query string
 Extract SteamId
 [Missing path here] Would ideally call POST Server/LinkSteamAccountWithSteamId

Steam does not grant access to a SessionTicket without access to a signed in steam process on the same machine, that I know of at least.

apisAccount Managementsupport
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Comments

·
Andrew Farrugia avatar image
Andrew Farrugia commented

That would be excellent. +1

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Gavin Jensen (HE/HIM) avatar image
Gavin Jensen (HE/HIM) commented

Thanks for the suggestion and feedback. We understand this gap have added this feature request to our backlog.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Andrew Farrugia avatar image Andrew Farrugia commented ·

Great news!

0 Likes 0 ·
Shilpa Goel avatar image
Shilpa Goel commented

Update: We have finally added the functionality of linking steam accounts to playfab using the steamId. For more details, check out : link-steam-id Thanks again for bringing this to our attention.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

george@thenuum.com avatar image george@thenuum.com commented ·

It says is server only. How do we do this from the client side?

1 Like 1 ·

Write a Comment

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.