Method RequestSISUTokens
RequestSISUTokens(String, String, String, String, String, String, Boolean)
Uses the SISU endpoint to authorize the user, device, and the title.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.Security.SISUAuthorizationResponse?> RequestSISUTokens (string deviceToken, string accessToken, string appId, string? sessionId = default, string sandbox = "RETAIL", string siteName = "user.auth.xboxlive.com", bool useModernGamertag = true);
Parameters
Type | Name | Description |
---|---|---|
System.String | deviceToken | Previously generated device token. |
System.String | accessToken | Access token from the OAuth authentication endpoint. |
System.String | appId | Application ID. |
System.String | sessionId | Session ID from the SISU authentication request. |
System.String | sandbox | Sandbox to be used. Default value is "RETAIL". |
System.String | siteName | Site name to be used for the request. Default value is "user.auth.xboxlive.com". |
System.Boolean | useModernGamertag | Determines whether modern gamertags are used. Default value is true. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SISUAuthorizationResponse> | If successful, returns an instance of SISUAuthorizationResponse that contains device, authorization, user, and title tokens. Otherwise, returns null. |
Remarks
Under most conditions, this will not be used and instead standard XSTS authorization should be relied upon. However, when special permission tokens are needed (e.g., when using the lobby endpoints), this is the way.