Adding Basic Authorization and Body Parsing
The Glitch projects do not have any authorization or body parsing code by default. To include this content:
- Add the Body Parser and Basic Auth
npmpackages to your Glitch project
- Add the code snippet below
To add the
- Click on the
package.jsonfile in the left-hand project menu.
- From the
Add Packagedrop-down, search for the
- Click each package to add to your project.
After including the packages, add the following code snippet in your project.
Note: As part of the hook configuration process, you add the authorization field and secret in your Okta org, which inputs this content into the Okta request header. The authorization and secret are authorized by your external service.