EnableInternalAuthentication([MetabaseInternalAuthenticatioActivationOptions=0]);
EnableInternalAuthentication(Prognoz.Platform.Interop.Metabase.MetabaseInternalAuthenticatioActivationOptions);
MetabaseInternalAuthenticatioActivationOptions. Parameters for activation of inner authentication in repository. For Fore this parameter is optional, default value (Default) will be used.
The EnableInternalAuthentication method enables authorization by means of Prognoz Platform 9 tools.
The method is outdated, use IMetabasePolicy.CheckUserPassword.
By default, authorization is used by DBMS tools in repository.
If authorization by means of Prognoz Platform 9 tools is enabled, when the user logs in, user authorization is executed in DBMS, then user password hash is checked in the repository. At the first login after enabling authorization by means of Prognoz Platform 9 tools, password change is required.
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.EnableInternalAuthentication;
MS.Apply;
End Sub UserProc;
After executing this example, authorization by means of Prognoz Platform 9 tools is enabled.
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.EnableInternalAuthentication(MetabaseInternalAuthenticatioActivationOptions.meinauacopDefault);
MS.Apply();
End Sub;
After executing this example, authorization by means of Prognoz Platform 9 tools is enabled.
See also: