How-To Guides
...
Using AAPM Agent SDKs
Using .Net SDK
4 min
the kron pam net sdk allows developers to securely integrate kron pam vault capabilities into net based applications it enables runtime retrieval of privileged credentials, ensuring that applications, scripts, and services can authenticate dynamically without storing passwords locally or in configuration files the sdk is included with the kron pam agent package or available as a standalone package it supports the following framework versions net framework 4 7 net 5 0 net 6 0 net 7 0 net 8 0 the sdk is distributed with the kron pam agent package or a seperated package integration steps create or open your net project (e g , console app) add the kron pam sdk references to the project include the sdk namespaces using aapm sdk; using com kron aapm rpc; ensure the application has network access to the kron pam secrets management agent and/or kron pam password vault example implementation below is a sample test program demonstrating credential retrieval using the kron pam net sdk using system; using aapm sdk; using com kron aapm rpc; namespace agent5 { class program { static void main(string\[] args) { // vault and agent configuration string token = "11cd0f62 56fb 4159 aa01 4c7194f79e16"; string aname = "lstprdodb01"; string pathname = "/databases"; string serveraddress = "https //kron pam ip address/"; string agentaddress = "agentipaddress"; ushort agentport = 6396; // define request var request = new accessrequestvalidtypes { accountname = aname, accounttoken = token, accountpath = pathname, responsetype = validresponsetype text, showusername = false, prettify = true, passwordexpirationtime = "30", passwordchangerequired = false }; // example output // rpc response success = \[username aioc, password xhg2vm3t] } } } when executed successfully, the sdk returns live credentials from the kron pam vault rpc response success = \[username aioc, password xhg2vm3t] process finished with exit code 0 configuration parameters parameter definition serveraddress kron pam vault endpoint url token kron pam aapm token assigned for account accountname account name registered in kron pam vault accountpath account path within the vault (e g , /databases/sharedaccouts, /windows) comment optional descriptive comment for the fetching password showusername include username in response (true/false) passwordexpirationtime duration before password expiration (in minutes) passwordchangerequired whether to force a new password rotation upon retrieval prettify enables formatted response output responsetype format of the response (text, json) agentaddress kron pam secrets management agent ip address (hostname) agentport kron pam secrets management agent port number