Redeem website login keycards over SASL
All checks were successful
CI / check (push) Successful in 3m52s
All checks were successful
CI / check (push) Successful in 3m52s
A member already authenticated on tchatou.fr connects with a single-use kc_… keycard instead of their password (the m_apiauth module that used to validate it was retired in the Anope->echo cutover, so these logins had started failing as "wrong password"). The SASL PLAIN handler now recognises a kc_-prefixed credential and emits NetAction::DeferKeycard; the link layer redeems it off the engine lock — a localhost round-trip to Django's login-token endpoint via keycard::redeem — and completes the login exactly like a password auth. Config: [keycard] url + api_key; absent, kc_ credentials are simply not honoured.
This commit is contained in:
parent
bad17a184e
commit
f2fd80694d
9 changed files with 359 additions and 4 deletions
|
|
@ -67,6 +67,7 @@ axum = "0.7"
|
|||
axum-server = { version = "0.7", features = ["tls-rustls"] }
|
||||
prost = "0.13"
|
||||
tokio-stream = "0.1"
|
||||
ureq = { version = "2", default-features = false }
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = "0.12"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue