IUserAuthorization
StockSharp.Server.Core
Broker authorization that yields the numeric user PK together with the session token in a single credentials validation, where Ecng.Security.IAuthorization.ValidateCredentials returns only the token.
方法
ValidateUserAsync
public ValueTask<UserAuthResult> ValidateUserAsync(string login, SecureString password, IPAddress clientAddress, CancellationToken cancellationToken)
result = iUserAuthorization.ValidateUserAsync(login, password, clientAddress, cancellationToken)
Validate credentials and return the session token plus the numeric owner PK (0 for a login with no broker user, e.g. a service login). Throws on invalid credentials, mirroring IAuthorization.ValidateCredentials.