fix: Panic when trying to check an unknown UIAA stage type

This commit is contained in:
Ginger committed 2026-06-29 09:35:51 -04:00
1 parent d0c7a62ce7
commit b87afeef80
1 file changed
+6 -4
+6 -4
View File
@@ -584,10 +584,12 @@ impl Service {
}
},
| AuthData::Terms(_) => Ok(AuthType::Terms),
| _ => Err(StandardErrorBody::new(
ErrorKind::Unrecognized,
"Unsupported stage type".into(),
)),
| unknown => {
// We already checked that the stage type is one that exists in the flow,
// so we can only get here if we ourselves served a flow with a stage that we
// don't understand.
panic!("tried to check an unsupported stage type: {unknown:?}");
},
},
}?;