mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Add a code path for clients trying to use fallback auth
This commit is contained in:
@@ -233,6 +233,16 @@ pub async fn try_auth(
|
|||||||
| AuthData::Dummy(_) => {
|
| AuthData::Dummy(_) => {
|
||||||
uiaainfo.completed.push(AuthType::Dummy);
|
uiaainfo.completed.push(AuthType::Dummy);
|
||||||
},
|
},
|
||||||
|
| AuthData::FallbackAcknowledgement(_) => {
|
||||||
|
// The client is checking if authentication has succeeded out-of-band. This is
|
||||||
|
// possible if the client is using "fallback auth" (see spec section
|
||||||
|
// 4.9.1.4), which we don't support (and probably never will, because it's a
|
||||||
|
// disgusting hack).
|
||||||
|
|
||||||
|
// Return early to tell the client that no, authentication did not succeed while
|
||||||
|
// it wasn't looking.
|
||||||
|
return Ok((false, uiaainfo));
|
||||||
|
},
|
||||||
| k => error!("type not supported: {:?}", k),
|
| k => error!("type not supported: {:?}", k),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user