aaf-rapid-connect-mock
Host a local "mock" instance of AAF Rapid Connect.
Installation
Install the package with NPM:
$ npm install aaf-rapid-connect-mock
Usage
Example:
; let options = ... ;;
As shown, the package exposes a function that returns an Express application instance. The following options
can be specified:
jwtSecret
– The secret key used to sign JWTs. Required!appUrl
– The main entry point URL of the application. Defaults tohttps://example.com
.authUrl
– The callback URL that JWTs are sent to on sign-in. Defaults to/auth
.pageTitle
– The title of the sign-in page. Defaults toAAF Rapid Connect
.
Tip
To integrate the package into an existing Express application, simply mount it at a path:
;; let app = ; if processenvNODE_ENV !== "production" let jwtSecret = "secret"; app; app;