MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / validate

Method validate

chirpstack/src/api/auth/validator.rs:36–45  ·  view source on GitHub ↗
(
        &self,
        ext: &Extensions,
        auth_validator: impl Validator + Sync,
    )

Source from the content-addressed store, hash-verified

34 }
35
36 pub async fn validate(
37 &self,
38 ext: &Extensions,
39 auth_validator: impl Validator + Sync,
40 ) -> Result<(), Status> {
41 let id = ext.get::<AuthID>().unwrap();
42 auth_validator.validate(id).await?;
43
44 Ok(())
45 }
46}
47
48#[async_trait]

Callers 15

profileMethod · 0.45
global_searchMethod · 0.45
create_api_keyMethod · 0.45
delete_api_keyMethod · 0.45
list_api_keysMethod · 0.45
get_devices_summaryMethod · 0.45
get_gateways_summaryMethod · 0.45
stream_gateway_framesMethod · 0.45
stream_device_framesMethod · 0.45
stream_device_eventsMethod · 0.45
list_regionsMethod · 0.45
get_regionMethod · 0.45

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected