Skip to content

Biscuit is authorized biscuitsec.org but not in rust code #283

@dbcfd

Description

@dbcfd

This is the biscuit that results from authorizer.printWorld()

// Facts:
// origin: 0
organization("ffaa76c7-78d2-40f9-98e7-6ea28ec089ce");
user("65e53b33-c8b2-4792-91ac-330a51158d0a");
// origin: 1
right("65e53b33-c8b2-4792-91ac-330a51158d0a", "ffaa76c7-78d2-40f9-98e7-6ea28ec089ce", "read");

// Checks:
// origin: authorizer
check if user($user_id), organization($org_id), right($user_id, $org_id, "read");

// Policies:
allow if true;

authorizer.authorize() in rust fails though with error FailedLogic(Unauthorized { policy: Allow(0), checks: [Authorizer(FailedAuthorizerCheck { check_id: 0, rule: "check if user($user_id), organization($org_id), right($user_id, $org_id, \"read\")" })] })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions