You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Cannot decode base64 token: Encoded text cannot have a 6-bit remainder."
285
311
);
312
+
313
+
assert_eq!(
314
+
format!(
315
+
"{}",
316
+
Token::FailedLogic(Logic::Unauthorized{
317
+
policy:MatchedPolicy::Allow(0),
318
+
checks: vec![
319
+
FailedCheck::Authorizer(FailedAuthorizerCheck{
320
+
check_id:0,
321
+
rule:"check if false".to_string()
322
+
}),
323
+
FailedCheck::Block(FailedBlockCheck{
324
+
block_id:0,
325
+
check_id:0,
326
+
rule:"check if false".to_string()
327
+
})
328
+
]
329
+
})
330
+
)
331
+
.to_string(),
332
+
"authorization failed: an allow policy matched (policy index: 0), and the following checks failed: Check n°0 in authorizer: check if false, Check n°0 in block n°0: check if false"
Copy file name to clipboardExpand all lines: biscuit-capi/tests/capi.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ biscuit append error? (null)
114
114
authorizer creation error? (null)
115
115
authorizer add check error? (null)
116
116
authorizer add policy error? (null)
117
-
authorizer error(code = 21): authorization failed
117
+
authorizer error(code = 21): authorization failed: an allow policy matched (policy index: 0), and the following checks failed: Check n°0 in authorizer: check if right("efgh"), Check n°0 in block n°1: check if operation("read")
0 commit comments