Skip to main content

Example application

The example application is a very basic setup with a login and a dashboard screen. The so-called dashboard is configured to only be accessible by a logged in user, and it simply displays the user's email and role.



As discussed in the Overview section, the setup we're after is roughly based on the diagram below. The core Invirt Security components used in this example application are discussed in the previous section.

The steps 1/2/3 performed by the Authenticator implementation above would typically be delegated to an external component or a third-party authentication provider. In order to keep this example easy to run and reason about, we've implemented a mock in-memory user and session management in the AuthenticationService component.

We recommend having a look at the complete example and running it to understand how all of this is wired.