BlushyFace.Twitch
BlushyFace.Twitch.API.Authentication.OAuth Class Reference

Implemented More...

Public Member Functions

void OpenImplicitUrl (string clientId, string redirectUrl, string scopes="", string state="")
 Implicit code flow opens a browser to retrieve the token. More...
 
void OpenAuthorizationUrl (string clientId, string redirectUrl, string scopes="", string state="")
 
async Task< GenerateTokenResponse > GenerateAuthorizationTokenAsync (string clientId, string clientSecret, string redirectUrl, string code)
 Authorization flow More...
 
async Task< ValidateTokenResponse > ValidateTokenAsync (string token)
 
async Task< GenerateTokenResponse > RefreshTokenAsync (string clientId, string clientSecret, string refreshToken)
 
async Task< StatusResponse > RevokeTokenAsync (string clientId, string token)
 

Detailed Description

Implemented

Member Function Documentation

◆ GenerateAuthorizationTokenAsync()

async Task<GenerateTokenResponse> BlushyFace.Twitch.API.Authentication.OAuth.GenerateAuthorizationTokenAsync ( string  clientId,
string  clientSecret,
string  redirectUrl,
string  code 
)
inline

Authorization flow

◆ OpenImplicitUrl()

void BlushyFace.Twitch.API.Authentication.OAuth.OpenImplicitUrl ( string  clientId,
string  redirectUrl,
string  scopes = "",
string  state = "" 
)
inline

Implicit code flow opens a browser to retrieve the token.

Parameters
clientId
redirectUrl
scopes
Returns

◆ RefreshTokenAsync()

async Task<GenerateTokenResponse> BlushyFace.Twitch.API.Authentication.OAuth.RefreshTokenAsync ( string  clientId,
string  clientSecret,
string  refreshToken 
)
inline

◆ RevokeTokenAsync()

async Task<StatusResponse> BlushyFace.Twitch.API.Authentication.OAuth.RevokeTokenAsync ( string  clientId,
string  token 
)
inline

◆ ValidateTokenAsync()

async Task<ValidateTokenResponse> BlushyFace.Twitch.API.Authentication.OAuth.ValidateTokenAsync ( string  token)
inline