Skip to content

Commit

Permalink
Merge branch 'main' into renovate/anyhow-1.x-lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre authored Nov 25, 2024
2 parents 0005bd6 + 92c85db commit a18bf63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions server/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ async fn build_edge(args: &EdgeArgs, app_name: &str) -> EdgeResult<EdgeInfo> {
.await;
}

if args.strict && token_cache.is_empty() {
error!("You started Edge in strict mode, but Edge was not able to validate any of the tokens configured at startup");
return Err(EdgeError::NoTokens("No valid tokens was provided on startup. At least one valid token must be specified at startup when running in Strict mode".into()));
}
for validated_token in token_cache
.iter()
.filter(|candidate| candidate.value().token_type == Some(TokenType::Client))
Expand Down

0 comments on commit a18bf63

Please sign in to comment.