Loading...
Searching...
No Matches
OAuth2 Class Reference
Inheritance diagram for OAuth2:

Public Member Functions

 OAuth2 (IHttpClient httpClient, Config config, ISession session)
 OAuth2 (IHttpClient httpClient, Config config, ISession session, HttpOperator httpOperator)
void LoginWithUsername (string username, string password, ResultCallback callback, bool rememberMe=false)
void LoginWithUsername (string username, string password, ResultCallback< TokenData, OAuthError > callback, bool rememberMe=false)
void LoginWithUsernameV3 (string username, string password, ResultCallback callback, bool rememberMe=false, string authTrustId=null)
void LoginWithUsernameV3 (string username, string password, ResultCallback< TokenData, OAuthError > callback, bool rememberMe=false, string authTrustId=null)
void LoginWithDeviceId (ResultCallback callback)
void LoginWithDeviceId (ResultCallback< TokenData, OAuthError > callback)
void LoginWithOtherPlatform (PlatformType platformType, string platformToken, ResultCallback callback, bool createHeadless=true)
void LoginWithOtherPlatform (PlatformType platformType, string platformToken, ResultCallback< TokenData, OAuthError > callback, bool createHeadless=true)
void LoginWithOtherPlatformId (string platformId, string platformToken, ResultCallback callback, bool createHeadless=true)
void LoginWithOtherPlatformId (string platformId, string platformToken, ResultCallback< TokenData, OAuthError > callback, bool createHeadless=true)
void LoginWithOtherPlatformId (string platformId, string platformToken, ResultCallback< TokenData, OAuthError > callback, bool createHeadless, string serviceLabel)
void CreateHeadlessAccountAndResponseToken (string linkingToken, bool extendExp, ResultCallback callback)
void CreateHeadlessAccountAndResponseToken (string linkingToken, bool extendExp, ResultCallback< TokenData, OAuthError > callback)
void AuthenticationWithPlatformLink (string username, string password, string linkingToken, ResultCallback callback)
void AuthenticationWithPlatformLink (string username, string password, string linkingToken, ResultCallback< TokenData, OAuthError > callback)
void LoginWithAuthorizationCode (string code, ResultCallback callback)
void LoginWithAuthorizationCode (string code, ResultCallback< TokenData, OAuthError > callback)
void LoginWithAuthorizationCodeV3 (string code, ResultCallback< TokenData, OAuthError > callback)
void Logout (string Bearer, ResultCallback callback)
void RefreshSession (string refreshToken, ResultCallback callback)
void RefreshSession (string refreshToken, ResultCallback< TokenData, OAuthError > callback)
void Verify2FACode (string mfaToken, TwoFAFactorType factor, string code, ResultCallback< TokenData, OAuthError > callback, bool rememberDevice=false)
void VerifyToken (string token, ResultCallback callback)
void GenerateOneTimeCode (string AccessToken, PlatformType platformId, ResultCallback< GeneratedOneTimeCode > callback)
void GenerateOneTimeCode (string accessToken, PlatformType platformId, GenerateOneTimeCodeOptionalParameters optionalParameters, ResultCallback< GeneratedOneTimeCode > callback)
void GenerateCodeForPublisherTokenExchange (string accessToken, string publisherNamespace, string publisherClientId, ResultCallback< CodeForTokenExchangeResponse > callback)
 This function generate a code that can be exchanged into publisher namespace token (i.e. by web portal).
void GenerateGameToken (string code, ResultCallback callback)
IEnumerator RetrieveUserThirdPartyPlatformToken (string userId, PlatformType platformType, ResultCallback< ThirdPartyPlatformTokenData, OAuthError > callback)
void LoginWithEmailV4 (string emailAddress, string password, bool rememberMe, ResultCallback< TokenDataV4, OAuthError > callback, string authTrustId=null)
void LoginWithDeviceIdV4 (ResultCallback< TokenDataV4, OAuthError > callback)
void LoginWithOtherPlatformIdV4 (string platformId, string platformToken, bool createHeadless, ResultCallback< TokenDataV4, OAuthError > callback)
void LoginWithOtherPlatformIdV4 (string platformId, string platformToken, bool createHeadless, string serviceLabel, ResultCallback< TokenDataV4, OAuthError > callback)
void LoginWithAuthorizationCodeV4 (string code, ResultCallback< TokenDataV4, OAuthError > callback)
void RefreshSessionV4 (string refreshToken, ResultCallback< TokenDataV4, OAuthError > callback)
void Verify2FACodeV4 (string mfaToken, TwoFAFactorType factor, string code, bool rememberDevice, ResultCallback< TokenDataV4, OAuthError > callback)
void GenerateGameTokenV4 (string code, ResultCallback< TokenDataV4, OAuthError > callback)
void AuthenticationWithPlatformLinkV4 (string email, string password, string linkingToken, ResultCallback< TokenDataV4, OAuthError > callback)
void GetTokenWithLoginTicket (string loginTicket, ResultCallback< TokenDataV4, OAuthError > callback, string authTrustId=null)
void CreateHeadlessAccountAndResponseTokenV4 (string linkingToken, bool extendExp, ResultCallback< TokenDataV4, OAuthError > callback)

Additional Inherited Members

Protected Member Functions inherited from AccelByte.Core.ApiBase
 ApiBase (IHttpClient inHttpClient, Config inConfig, string inBaseUrl, ISession inSession, HttpOperator httpOperator=null)
Protected Member Functions inherited from AccelByte.Core.ApiBaseParent
 ApiBaseParent (IHttpClient inHttpClient, ISession inSession, string inBaseUrl)
Protected Attributes inherited from AccelByte.Core.ApiBaseParent
readonly ISession Session
 Contains AuthorizationToken and related auth.
Properties inherited from AccelByte.Core.ApiBaseParent
IHttpClient HttpClient [get]

Member Function Documentation

◆ GenerateCodeForPublisherTokenExchange()

void OAuth2.GenerateCodeForPublisherTokenExchange ( string accessToken,
string publisherNamespace,
string publisherClientId,
ResultCallback< CodeForTokenExchangeResponse > callback )
inline

This function generate a code that can be exchanged into publisher namespace token (i.e. by web portal).

Parameters
accessTokenPlayer's access token
publisherNamespaceThe targeted game's publisher Namespace
publisherClientIdThe targeted game's publisher ClientID
callbackA callback will be called when the operation succeeded