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
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
ISocialServiceThe social service.
socialId
longThe social ID.
isDemo
booldomainId
longcancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IOAuthToken>
The access token.