Table of Contents

Class WebApiOAuthProvider

Namespace
StockSharp.Studio.WebApi
Assembly
StockSharp.Studio.WebApi.dll

Represents a provider for OAuth authentication in a Web API.

public class WebApiOAuthProvider : IOAuthProvider
Inheritance
WebApiOAuthProvider
Implements
IOAuthProvider
Inherited Members
Extension Methods

Constructors

WebApiOAuthProvider()

public WebApiOAuthProvider()

Properties

TimeOut

The timeout for the OAuth authentication.

public TimeSpan TimeOut { get; set; }

Property Value

TimeSpan

Methods

OpenBrowser(ISocialService, long, bool, long, CancellationToken)

Opens a browser to perform OAuth authentication and returns the access token.

protected virtual Task<IOAuthToken> OpenBrowser(ISocialService svc, long socialId, bool isDemo, long domainId, CancellationToken cancellationToken)

Parameters

svc ISocialService

The social service.

socialId long

The social ID.

isDemo bool
domainId long
cancellationToken CancellationToken

The cancellation token.

Returns

Task<IOAuthToken>

The access token.