Table of Contents

Class WebApiAuthorization

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

The module of the connection access check based on the StockSharp authorization.

public class WebApiAuthorization : IAuthorization
Inheritance
WebApiAuthorization
Implements
IAuthorization
Inherited Members
Extension Methods

Constructors

WebApiAuthorization()

Initializes a new instance of the WebApiAuthorization.

public WebApiAuthorization()

WebApiAuthorization(IApiServiceProvider, bool)

Initializes a new instance of the WebApiAuthorization.

public WebApiAuthorization(IApiServiceProvider apiProvider, bool useClientAddress)

Parameters

apiProvider IApiServiceProvider

StockSharp.Web.Api.Client.IApiServiceProvider.

useClientAddress bool

StockSharp.Web.Api.Client.ServiceExtensions.TrySetIp``1(``0,System.Net.IPAddress)

Methods

ValidateCredentials(string, SecureString, IPAddress, CancellationToken)

public virtual ValueTask<string> ValidateCredentials(string login, SecureString password, IPAddress clientAddress, CancellationToken cancellationToken)

Parameters

login string
password SecureString
clientAddress IPAddress
cancellationToken CancellationToken

Returns

ValueTask<string>