This repository contains an example of using trusted authentication. It's written using Svelte and SvelteKit, but the concepts should be applicable to any framework.
The APIs provided are:
GET /token?user=<username>
- gets an auth token for the specified userGET /env
- returns the environment variables that are used for the auth token. This is mostly just to verify the settings. Note that only part of the secret key is returned.To run this example, you need to provide the following environment variables:
Environment variables can be provided in the container environment or in a .env file located in the root of the project.