IMetabaseAuthenticationPolicy.CheckInternalAuthenticationAbility

Fore Syntax

CheckInternalAuthenticationAbility;

Fore.NET Syntax

CheckInternalAuthenticationAbility;

Description

The CheckInternalAuthenticationAbility method checks if authorization can be enabled by means of Prognoz Platform 9 tools.

Comments

The method is outdated, use IMetabasePolicy.CheckUserPassword.

If authorization cannot be enabled by means of Prognoz Platform 9 tools, an exception is thrown.

Fore Example

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.

Fore.NET Example

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:

IMetabaseAuthenticationPolicy