Method RequestOAuthToken
RequestOAuthToken(String, String, String, String, String[], Boolean)
Requests the OAuth token for the Xbox Live authentication flow.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.Security.OAuthToken?> RequestOAuthToken (string clientId, string authorizationCode, string redirectUrl, string clientSecret = "", string[]? scopes = default, bool useCodeVerifier = false);
Parameters
Type | Name | Description |
---|---|---|
System.String | clientId | Client ID defined for the registered application in the Azure Portal. |
System.String | authorizationCode | Authorization code provided by visiting the URL from the GenerateAuthUrl(String, String, String[], String) function. |
System.String | redirectUrl | Redirect URL defined for the registered application in the Azure Portal. |
System.String | clientSecret | Client secret defined for the registered application in the Azure Portal. |
System.String[] | scopes | A list of scopes used for authentication against the Xbox Live APIs. |
System.Boolean | useCodeVerifier | Determines whether the code verifier should be used. If not using SISU flows, this can be ignored. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<OAuthToken> | If successful, returns an instance of OAuthToken representing the OAuth token used for authentication. Otherwise, returns null. |