xbox xbl relying-party lists, gets,
creates, and saves the relying parties of a seller account. Reading them needs the Partner Center
Relying parties Read permission, and creating or saving them needs Relying parties Write.
Like every xbl command, these commands are Experimental: their options and output might change
or be removed. See Experimental commands.
create registers the relying party’s name across XBOX services at once, before you publish.
Nobody can rename, delete, or reuse it, and its business partner can’t be changed.create and save change the account’s draft. Players’ tokens change only after you publish it
with xbl config publish --scope account. For how a web service
uses relying parties, see
Setting up web services at Partner Center
in the XBOX developer documentation. To map the URLs your game calls to a relying party, see
Single sign-on endpoints.
Make the encryption certificate
Your service decrypts its tokens with the certificate’s private key, which stays with your service.create and save take only the public certificate, DER or PEM. They refuse a file that holds a
private key, such as a .pfx, before they send anything. For example, OpenSSL writes a new private
key to rp-key.pem, protected by a pass phrase it asks for, and its public certificate to rp.cer:
Options
save changes only the settings you pass, and needs at least one of them.
Claims
A claim is a claim type URI, such ashttp://schemas.microsoft.com/xbox/2011/07/claims/user/gamertag,
as relying-party get lists them. XBOX services refuse a claim the business partner’s type doesn’t
allow. The claims every relying party carries, such as the user’s age group, are always added.
With --claim, create gives the relying party only the claims you pass. Without it, create gives
it the claims Partner Center selects for its business partner’s type, which
business-partner list shows:
Partner Center doesn’t recommend the User Pairwise ID (upi) claim,
http://schemas.microsoft.com/xbox/2013/03/claims/user/pwid. Use the Partner XBOX user ID (ptx)
claim, http://schemas.microsoft.com/xbox/2011/07/claims/user/pxuid, instead.
For example, if relying-party get lists only the delegation token claim besides the ones every
relying party carries, this keeps it and adds the gamertag claim:
--claim http://schemas.microsoft.com/xbox/2011/07/claims/user/agegroup.
Examples
List the account’s relying parties:api.nodpublishers.com, with tokens encrypted to rp.cer:
Output
get, create, and save write the relying party:
list writes them as an array, by name. They come from the account’s draft, so
they include changes that aren’t published yet; config status --scope account
shows what isn’t. The table shows NAME, BUSINESS PARTNER ID, LIFETIME HOURS, and
CERTIFICATE EXPIRES, the date the certificate expires.
On stderr, create and save say how to publish the change:
jku header, or when it
carries the upi claim, as Partner Center’s relying party page does.
Exit codes
Errors
A refused request exits1 and writes a JSON error to stderr, as Errors
describes. These are the ones you’re most likely to see:
A
save also fails with HTTP 409 when the relying party changed while it ran. Run it again.