auth: widen identity provider seam
This commit is contained in:
@@ -912,6 +912,9 @@ impl AdminService {
|
||||
.await
|
||||
{
|
||||
Ok(LoginOutcome::Authenticated(identity)) => Ok(identity),
|
||||
Ok(LoginOutcome::TwoFactorRequired(_)) => Err(ApiError::internal(
|
||||
"two-factor login flow is not configured for this service",
|
||||
)),
|
||||
Err(error) => Err(map_identity_error(error)),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user