Skip to content

Commit

Permalink
Merge pull request #400 from btpworks/fix/userinfo-error
Browse files Browse the repository at this point in the history
do not tolerate failure response from userinfo endpoint
  • Loading branch information
mtbc authored Jul 25, 2023
2 parents 8bd8f92 + faad43a commit faca7f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/api/src/chronicle_graphql/authorization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ impl TokenChecker {
),
})
}
} else if error.is_some() {
tracing::trace!("first error before UserInfo was {error:?}");
} else {
if error.is_some() {
tracing::trace!("first error before UserInfo was {error:?}");
}
error = Some(Error::UserInfoResponse {
server: userinfo_uri.clone(),
status: response.status(),
});
} else {
cache.cache_set(token.to_string(), Map::new());
}
}
}
Expand Down

0 comments on commit faca7f1

Please sign in to comment.