MCPcopy Create free account
hub / github.com/cedar-policy/cedar-java / make_auth_failure

Function make_auth_failure

CedarJavaFFI/src/interface.rs:357–370  ·  view source on GitHub ↗
(msg: String)

Source from the content-addressed store, hash-verified

355}
356
357fn make_auth_failure(msg: String) -> AuthorizationAnswer {
358 AuthorizationAnswer::Failure {
359 errors: vec![DetailedError {
360 message: msg,
361 help: None,
362 code: None,
363 url: None,
364 severity: None,
365 source_locations: vec![],
366 related: vec![],
367 }],
368 warnings: vec![],
369 }
370}
371
372fn json_stateful_is_authorized(input: &str) -> serde_json::Result<String> {
373 let call: StatefulAuthCall = serde_json::from_str(input)?;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected