mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-21 22:47:55 +01:00
Slightly more logging during authentication
This commit is contained in:
parent
25df5bf5b2
commit
f905b1f375
@ -65,12 +65,16 @@ impl AuthenticationSystem for Authentication {
|
|||||||
Ok(Step::Done(data)) => {
|
Ok(Step::Done(data)) => {
|
||||||
self.state = State::Finished;
|
self.state = State::Finished;
|
||||||
|
|
||||||
let uid = pry!(session.get_property::<AuthId>().ok_or(capnp::Error::failed(
|
let uid = pry!(session.get_property::<AuthId>().ok_or_else(|| {
|
||||||
"Authentication didn't provide an authid as required".to_string()
|
tracing::warn!("Authentication didn't provide an authid as required.");
|
||||||
)));
|
capnp::Error::failed(
|
||||||
let session = pry!(manager.open(uid.as_ref()).ok_or(capnp::Error::failed(
|
"Authentication didn't provide an authid as required".to_string(),
|
||||||
"Failed to lookup the given user".to_string()
|
)
|
||||||
)));
|
}));
|
||||||
|
let session = pry!(manager.open(uid.as_ref()).ok_or_else(|| {
|
||||||
|
tracing::warn!(uid = uid.as_str(), "Failed to lookup the given user");
|
||||||
|
capnp::Error::failed("Failed to lookup the given user".to_string())
|
||||||
|
}));
|
||||||
|
|
||||||
let mut builder = builder.init_successful();
|
let mut builder = builder.init_successful();
|
||||||
if data.is_some() {
|
if data.is_some() {
|
||||||
|
Loading…
Reference in New Issue
Block a user