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
IApiServiceProviderStockSharp.Web.Api.Client.IApiServiceProvider.
useClientAddress
boolStockSharp.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
stringpassword
SecureStringclientAddress
IPAddresscancellationToken
CancellationToken