CheckInternalAuthenticationAbility;
CheckInternalAuthenticationAbility;
The CheckInternalAuthenticationAbility method checks if authorization can be enabled by means of Prognoz Platform 9 tools.
The method is outdated, use IMetabasePolicy.CheckUserPassword.
If authorization cannot be enabled by means of Prognoz Platform 9 tools, an exception is thrown.
To execute the example add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
Policy: IMetabasePolicy;
AP: IMetabaseAuthenticationPolicy;
Begin
MB := MetabaseClass.Active;
MS := MB.Security;
Policy := MS.Policy;
AP := Policy.AuthenticationPolicy;
AP.CheckInternalAuthenticationAbility;
End Sub UserProc;
A possibility to enable authorization by means of Prognoz Platform 9 tools is checked. If authorization cannot be enabled by means of Prognoz Platform 9 tools, an exception is thrown.
The specified procedure is an entry point for the .NET assembly.
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
MS: IMetabaseSecurity;
Policy: IMetabasePolicy;
AP: IMetabaseAuthenticationPolicy;
Begin
MB := Params.Metabase;
MS := MB.Security;
Policy := MS.Policy;
AP := Policy.AuthenticationPolicy;
AP.CheckInternalAuthenticationAbility();
End Sub;
A possibility to enable authorization by means of Prognoz Platform 9 tools is checked. If authorization cannot be enabled by means of Prognoz Platform 9 tools, an exception is thrown.
See also: