8000 RBAC (Role-Based Access Control) · Issue #1270 · loco-rs/loco · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

RBAC (Role-Based Access Control) #1270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hieudev0390 opened this issue Feb 23, 2025 · 2 comments
Open

RBAC (Role-Based Access Control) #1270

hieudev0390 opened this issue Feb 23, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@hieudev0390
Copy link

Feature Request

RBAC (Role-Based Access Control)
Provide a succinct and clear description of the problem. For example, I encounter an issue when...
i find example here:
https://github.com/loco-rs/loco/tree/v0.14.0/examples/demo
Describe the solution you'd like
Would love to see RBAC feature added as an option
thank you so much.

@kaplanelad
Copy link
Contributor
kaplanelad commented Apr 30, 2025

Hey @hieudev0390,
I don’t think we need to implement this as a first-class feature in the loco library. That said, we can definitely create an initializer for it, similar to what @NexVeridian did in loco-openapi-Initializer.

If someone wants to take it on, I’d be happy to help with it.

@JonasCir
Copy link
JonasCir commented May 30, 2025

Hi,
maybe supporting something like casbin through an initializer would work? No need to reinvent the wheel here :)

Cheers!


EDIT: https://github.com/casbin-rs/axum-casbin

A middleware is readily available it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
0