Class AuthOAuthService

Class AuthOAuthService#

Inheritance Relationships#

Base Type#

Class Documentation#

class xbe.sdk.Services.AuthOAuthService : xbe.sdk.ServiceBase#

Public Functions

AuthOAuthService ()#
async Task<string> GetAuthorizationURI (string id, string state = null, string redirectUri = null, string scope = null)#

Requests the authorization URI for the specified OAuth provider. Optionally, set the redirect URI that will be used to redirect the completed request.

async Task<AuthToken> Authenticate (string id, string code, string redirectUri = null, string verifier = null)#

Authenticates the user using the specified OAuth provider and authorization code. Optionally, include the redirect URI that was used to generate the authorization code.

async Task Connect (string id, string code, string verifier = null, string redirectUri = null, bool force = false)#

Connects an existing user to a third-party OAuth provider using the specified id and authorization code. Optionally, include the redirect URI that was used to generate the authorization code.