Class CommunityAuthorization
The module of the connection access check based on the StockSharp authorization.
Implements
Ecng.Security.IAuthorization
Namespace: StockSharp.Community
Assembly: StockSharp.Studio.Community.dll
Syntax
public class CommunityAuthorization : Object, IAuthorization
Constructors
CommunityAuthorization(ProductInfoMessage, String, IAuthenticationClient)
Создать CommunityAuthorization.
Declaration
public CommunityAuthorization(ProductInfoMessage product, string version, IAuthenticationClient client)
Parameters
Type | Name | Description |
---|---|---|
ProductInfoMessage | product | Product. |
String | version | Version. |
IAuthenticationClient | client | Клиент для доступа к сервису авторизации StockSharp. |
Methods
ValidateCredentials(String, SecureString, IPAddress)
Проверить логин и пароль на правильность.
Declaration
public virtual Guid ValidateCredentials(string login, SecureString password, IPAddress clientAddress)
Parameters
Type | Name | Description |
---|---|---|
String | login | Login. |
SecureString | password | Password. |
IPAddress | clientAddress | Удаленный сетевой адрес. |
Returns
Type | Description |
---|---|
Guid | Идентификатор сессии. |
Implements
Ecng.Security.IAuthorization