This project demonstrates a practical example of a .NET application running on Ubuntu 20.04 that retrieves credentials securely using the CyberArk Credential Provider SDK and connects to a MySQL database to list all records from a table.
- Secure credential retrieval via CyberArk Credential Provider
- Dynamic DLL loading and reflection
- MySQL database connection using retrieved credentials
- Full table data listing with dynamic column handling
- Null-safe and exception-resilient code
- Ubuntu 20.04 or compatible Linux distribution
- .NET SDK installed (Install Guide) tial Provider installed and configured
- Valid Application ID with access to a safe and object
- MySQL server accessible from the host
Install required packages via NuGet:
- dotnet add package netstandardpasswordsdk
- dotnet add package MySqlConnector