Skip to main content

Configure JWT Verification Method

Overview

Ingrain is a service that allows you to add user activity logging without a backend (you can still use one if you wish to). This means that when sending us event payloads, you should also send us your user's JWT token so that we can verify that

  1. The request is sent from an authorized user.
  2. The user is allowed to send the payload based on the write rules (this will be covered in Writing/Reading Events Rules).

To do this, you need to configure the JWT Verification Method.

Steps

  1. Navigate to your application's JWT Verification page.
  2. Select the desired verification method from the dropdown and fill in the details.

Verification Options

OptionDescription
No verificationThe JWT token will not be verified. This is not recommended for production use.
JWKS URLThe JWT token will be verified using the JWKS URL provided. Verification Value is expected to be the URL. You may also provide 2 other optional values: JWKS Key ID and JWKS Signing Algorithm.
Public KeyThis should be used if your JWT is signed using an asymmetric algorithm. The JWT token will be verified using the public key provided. Verification Value is expected to be the public key.
Secret KeyThis should be used if your JWT is signed using a symmetric algorithm. The JWT token will be verified using the secret key provided. Verification Value is expected to be the secret key. Secret keys are sensitive and we do not recommend this method.