XboxLiveAuth

class XboxLiveAuth(httpClient: HttpClient)

Provides methods for authenticating with Xbox Live services.

See also

wiki.vg - Microsoft Authentication Scheme - heavily referenced when writing this class.

Parameters

httpClient

A custom HTTP client implementation, used to send requests to Xbox Live services. If excluded, the library's builtin client will be used.

Constructors

Link copied to clipboard
fun XboxLiveAuth()
Link copied to clipboard
fun XboxLiveAuth(httpClient: HttpClient)

Functions

Link copied to clipboard
fun getServiceToken(userToken: String): XboxLiveToken

Exchanges an Xbox Live user token for a service token.

Link copied to clipboard
fun getUserToken(accessToken: String): XboxLiveToken

Exchanges a Microsoft access token for an Xbox Live user token.