Testing the SPA

The SPA controller provides an effective harness for running the SPA. However, it may be useful to run the SPA outside of the controller, for example to test it prior to integrating it with Metrici.

In these cases, you can pass a JWT to the SPA in the URL using the access_token parameter. This will be picked up by the TokenManager, which will then use that JWT rather than attempting to generate one using a session. In this way, the SPA can be run entirely independently of Metrici.

This approach can also be used to embed the SPA in other websites, for example if a customer required a read-only view of data to be made available on their public website.