question

Brian Jordan avatar image
Brian Jordan asked

Disabling login with Custom IDs

Players with pirated copies of our game have begun linking new accounts with CustomIDs in order to access multiplayer. Legit players link their accounts with Steam.

Is there a way to disable the creation of CustomID linked accounts? Or to not allow matchmaking by those?

Player DataAccount ManagementCustom Game Serversgame managerMatchmaking
10 |1200

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

1 Answer

·
Seth Du avatar image
Seth Du answered

You are able to deny any client API calls via modifying the API access policy.

By calling Admin API with the following request, all the LoginWithCustomID API call will be denied:

{
  "PolicyName": "ApiPolicy",
  "Statements": [
    {
      "Resource": "pfrn:api--/Client/LoginWithCustomID",
      "Action": "*",
      "Effect": "Deny",
      "Principal": "*",
      "Comment": "This statement deny custom id login"
    }
  ],
  "OverwritePolicy": false
}

Please also double check the current policy via GetPolicy API and it should be like this:

{
    "code": 200,
    "status": "OK",
    "data": {
        "PolicyName": "ApiPolicy",
        "Statements": [
            {
                "Resource": "pfrn:api--*",
                "Action": "*",
                "Effect": "Allow",
                "Principal": "*",
                "Comment": "The default allow all policy"
            },
            {
                "Resource": "pfrn:api--/Client/LoginWithCustomID",
                "Action": "*",
                "Effect": "Deny",
                "Principal": "*",
                "Comment": "This statement deny custom id login"
            }
        ]
    }
}

3 comments
10 |1200

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

Brian Jordan avatar image Brian Jordan commented ·

Is it possible to set it up to whitelist only LoginWithCustomID and some others (PlayStation/Xbox/Switch)?

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Brian Jordan commented ·

Yes, it is possible, but will require much work. The API policy, in fact, is using the white list, if you deleted the default the first policy of "allowing all policy", you may specify each API to grant the permission, which means you will need to specify all the APIs the client will be used.

0 Likes 0 ·
thejacobharbison avatar image thejacobharbison commented ·

where do i put this policy if i put it in global it just gives me errors

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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