Method RequestXstsToken
RequestXstsToken(String, Boolean, String, String)
Requests the Xbox Live Security Token (XSTS) token for use with Halo API authentication flow.
Declaration
[[System.Runtime.CompilerServices.NullableContext(2)]]
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.Security.XboxTicket?> RequestXstsToken (string userToken, bool useHaloRelyingParty = true, string? deviceToken = default, string? titleToken = default);
Parameters
Type | Name | Description |
---|---|---|
System.String | userToken | Previously generated Xbox Live user token. |
System.Boolean | useHaloRelyingParty | Determines whether the Halo relying party is used or a more generic Xbox Live one. Using the Xbox Live relying party will not enable you to access Halo APIs. |
System.String | deviceToken | Optional device token, if available. |
System.String | titleToken | Optional title token, if available. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<XboxTicket> | If successful, returns an instance of XboxTicket representing the authentication ticket. Otherwise, returns null. |