ibizaman / selfhostblocks

Modular server management based on NixOS modules and focused on best practices.
https://shb.skarabox.com
GNU Affero General Public License v3.0
208 stars 6 forks source link

NixOS test for SSO forward auth #15

Open ibizaman opened 12 months ago

ibizaman commented 12 months ago

This test should spin up Nginx, Authelia and a stub upstream server that returns in a json response all the headers of requests it receives.

The test should configure Authelia to protect some endpoints of the stub server.

The test should make requests to the Nginx instance and validate the received payload from the stub server ha the correct headers.

Interesting links: https://www.authelia.com/integration/trusted-header-sso/introduction/ https://openidconnect.net/ https://oidcdebugger.com/

ibizaman commented 3 months ago

good inspiration https://github.com/NixOS/nixpkgs/blob/2b78fe5e0edba4783f9a998a9399d78b7350a910/nixos/tests/dex-oidc.nix#L64-L71