Skip to content
This repository was archived by the owner on May 6, 2023. It is now read-only.
This repository was archived by the owner on May 6, 2023. It is now read-only.

How dose g(r.sub, p.sub) work? #1

@txjjjjj

Description

@txjjjjj
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act 
# defines the workflow of authorization:
1. check user's role 
2. check the resource which user is trying to access
3. check the action of user.

can u explain how dose this 1. check user's role work ?
why should we pass r.sub and p.sub info g() when we check if a user belongs to a group?
if a user do not belong to a group just return faild?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions