Skip to content

Add an authorization middleware based on Casbin #931

@hsluoyz

Description

@hsluoyz

Hi, I'm the author of Casbin, a Go library for authorization based on access control policy. Casbin supports multiple access control models like ACL, RBAC, ABAC. The access control rules can be persisted into files, DB.

Echo has a middleware named basic_auth, but it is mainly authentication instead of authorization. Authorization is about managing permissions instead of checking username and password. So what do you think if I add an authorization middleware based on casbin to echo? Thanks!

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