Skip to content

A simple nodejs script that demonstrates how to set and retrieve custom metadata with Secure Anonymous Tokens.

Notifications You must be signed in to change notification settings

saucesome/frame-node-metadata-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frame-node-metadata-example

This is a simple Node.js example that demonstrates how to set and retrieve custom metadata when generating a Secure Anonymous Token (SAT).

This script is referenced in Frame's Secure Anonymous Token documentation, found here: https://docs.frame.nutanix.com/frame-apis/auth/auth-with-sat.html

Note: This example uses Axios for fetching endpoints.

Prerequisites

  • Frame account with API credentials
  • Secure Anonymous Token Provider
  • Node.js

Getting started

  1. Install axios with npm i axios
  2. Edit index.js to supply your Frame API credentials and Secure Anonymous Token provider endpoint URL. Save your changes.
  3. Run the script with node index.js. You should see a token and the specified metadata logged to the console.

Questions?

If you have any questions, comments, or run into any problems, please reach out by creating a new case/ticket in the My Nutanix portal.

About

A simple nodejs script that demonstrates how to set and retrieve custom metadata with Secure Anonymous Tokens.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published