MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / reject_transport_credentials

Function reject_transport_credentials

libatomic/src/local.rs:476–486  ·  view source on GitHub ↗
(
    headers: &std::collections::HashMap<String, String>,
    url: &Option<String>,
)

Source from the content-addressed store, hash-verified

474}
475
476fn reject_transport_credentials(
477 headers: &std::collections::HashMap<String, String>,
478 url: &Option<String>,
479) -> Result<(), Status> {
480 if !headers.is_empty() || url.is_some() {
481 return Err(Status::invalid_argument(
482 "trusted local sync does not accept auth_headers or remote_url",
483 ));
484 }
485 Ok(())
486}
487
488fn auth_status(error: auth::AuthError) -> Status {
489 match error {

Callers 1

callMethod · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected