Credentials: ICredentials;
Credentials: Prognoz.Platform.Interop.Metabase.ICredentials;
The Credentials property returns the user credentials that are necessary for connecting to another repository.
This property is:
Relevant for use, if the IMetabaseLink.LoginPrompt property is set to False.
Not relevant for use, if the IMetabaseLink.UseMetabaseCredentials property is set to True.
If the credentials are specified for the repository description, then on saving the description they will be encrypted and saved to the registry of the operation system. Saved credentials can be used on impersonation of users during the connection to the repository in the application code.
Executing the example requires the Test server, the TestShema schema and the User1 user credentials with the "password" password.
Add a link to the Metabase system assembly.
After executing the example the new object Connection with Repository is created in the repository root. This object connects with the repository that is placed on the Test server in the TestShema schema. Password authentication, DBMS type installed on the server - Oracle 9.x or later are used on connection. The automatic connection with the specified credentials is established if this connection is used.
See also: