@securden/sdk
v1.0.1
Published
Using functions which use Securden APIs, developers can retrieve credentials programmatically from Securden server.
Readme
Securden Software Development Kit - JavaScript
This guide will take you through the process of installing and integrating Securden JavaScript SDK for secure programmatic access to credentials.
Summary of Steps
- Installation
- Fetch credential using pre-defined commands
1. Installation
npm install @securden/sdk3. Fetch credential via CLI commands
Required
server_url(String) Securden Server URL. Example: https://company.securden.com:5454.authtoken(String) Securden API Authentication Token.
import { DefaultApi, ApiClient } from '@securden/sdk'
const apiClient = new ApiClient();
apiClient.basePath = '<server-url>'
apiClient.authtoken = "<your-api-auth-token>"
const securden_instance = new DefaultApi(apiClient);
(async () => {
try {
const response = await securden_instance.getPassword({
accountId: <account-id>
});
var password = response.data.password
console.log("Password: ", password);
} catch (error) {
console.error(error);
}
})(); -> If you have general questions or issues in using Securden SDK, you may raise a support request to [email protected]. Our support team will get back to you at the earliest and provide a timeline if there are issue fixes involved.
