Skip to content

Role setup not working #21

Closed
Closed
@sebastian-schlecht

Description

@sebastian-schlecht

Hey,

I'm still experimenting with this service - I tried to setup roles.

My roles are:
[ { "id": "admin", "members": [ "bob" ] } ]

My policies are:
[ { "id": "f1d0ff27-5afd-49dd-9f58-9dffc0b99e35", "description": "", "subjects": [ "admin" ], "effect": "allow", "resources": [ "project:1:ticket:1" ], "actions": [ "read" ], "conditions": {} } ]

However, my request to localhost:4466/warden/subjects/authorize with the following content returns { "allowed": false }.

Body:
{ "action": "read", "subject": "bob", "resource": "project:1:ticket:1" }

Am I doing anything wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions