swarmctl login: find the sso provider from the gateway's published metadata
This commit is contained in:
parent
c1851f37cc
commit
cd040afa0e
1 changed files with 421 additions and 16 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue