Watch
0
0
Fork
You've already forked hyperhive
0

swarmctl login: find the sso provider from the gateway's published metadata

This commit is contained in:
atlas 2026-11-23 20:55:42 +01:00 • committed by mara
commit cd040afa0e

View file

@ -299,6 +299,10 @@ controller's socket serves nginx alone. Both are defaults, so a value you set wi
route sends no `Remote-User`, so the routes that name the sender answer 401. Nothing in setup needs it:
`swarmctl login` needs only authelia and your SSO account, both there by step 2.
`login` finds the swarm's SSO provider itself: the gateway's 401 at `/api/`
names a public metadata document (RFC 9728) that names authelia, so `--swarm`
is the only thing you give it.
`login` opens the swarm's SSO login in a browser and receives the result on a loopback port, so
run it on the machine whose browser you use. It prints the port. On a host with no browser, forward
a port from the machine that has one, then give the login that port: