Skip to content

g2sentryinc/g2sentry-partner-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

g2sentry-partner-sample

The sample G2 Sentry partner app

Overview

This is a sample app demonstrating how to implement a callback endpoint that is called by the G2 Sentry service. The app showcases secure integration using an HMAC-based authentication scheme: all incoming requests from G2 Sentry are signed with a shared HMAC secret, and the app verifies these signatures to ensure authenticity and integrity. This security approach helps prevent unauthorized access and ensures that only trusted requests from G2 Sentry are processed.

Installation

  1. Clone the repository:
    git clone https://github.com/g2sentryinc/g2sentry-partner-sample.git
    cd g2sentry-partner-sample
  2. Install dependencies:
    npm install

Setup

Create a .env file in the project root:

SHARED_SECRET=your-hmac-secret
PORT=4000

Running

Run the test suite using:

node server.js

This will execute all unit and integration tests to verify the app's functionality.

About

The sample G2 Sentry partner app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published