Method GenerateAuthUrl
GenerateAuthUrl(String, String, String[], String)
Generates the authentication URL that can be used to produce the temporary code for subsequent Xbox Live authentication flows.
Declaration
public string GenerateAuthUrl (string clientId, string redirectUrl, string[]? scopes = default, string state = "");
Parameters
Type | Name | Description |
---|---|---|
System.String | clientId | Client ID defined for the registered application in the Azure Portal. |
System.String | redirectUrl | Redirect URL 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.String | state | Temporary state indicator. |
Returns
Type | Description |
---|---|
System.String | Returns the full authentication URL that can be pasted in a web browser. |