Set Account Linking Restrictions #
In this guide we’ll cover how to enable player account unlinking, set linking restrictions such as time cooldowns, and limiting unique accounts.
Enable player account unlinking #
To enable players to unlink their account directly from the Player Portal set accountUnlinkingEnabled
to true.
social:
pluginConfigs:
AccountService.identityProviderPlugins:
plugins:
Steam:
class: "pragma.account.SteamIdentityProviderPlugin"
config:
playerLoginEnabled: false
operatorLoginEnabled: false
showPortalLoginButton: true
accountLinkingEnabled: true
accountUnlinkingEnabled: true
To prevent fraud when a player unlinks their account,SetOrdersToUnlinked
is called. Orders associated with the unlinked provider will have anUNLINKED
status and be revoked from the player. If a player relinks the same account, previously purchased orders are restored with aRECEIVED
status.
Set a time cooldown #
In this section we’ll go over how to set a duration for how long players have to wait before linking a new account.
In your social
config add accountLinkingCooldownInDays
and the number of days you’d like to set the cooldown.
social:
pluginConfigs:
AccountService.identityProviderPlugins:
plugins:
Steam:
class: "pragma.account.SteamIdentityProviderPlugin"
config:
playerLoginEnabled: false
operatorLoginEnabled: false
showPortalLoginButton: true
accountLinkingEnabled: true
accountUnlinkingEnabled: true
visibleToOtherPlayers: false
accountLinkingCooldownInDays: 5
Limit unique accounts #
In this section we’ll go over how to restrict players from linking more than one account from the same identity provider.
In your social
config set accountLinkingOneAssociationOnly
to true.
social:
pluginConfigs:
AccountService.identityProviderPlugins:
plugins:
Steam:
class: "pragma.account.SteamIdentityProviderPlugin"
config:
playerLoginEnabled: false
operatorLoginEnabled: false
showPortalLoginButton: true
accountLinkingEnabled: true
accountUnlinkingEnabled: true
visibleToOtherPlayers: false
accountLinkingOneAssociationOnly: true
Player support resetting accounts #
Player support can reset or remove a player’s account in the Operator Portal, allowing players to create a new association.
For more information on managing account linking behavior see Account Plugin.