casbin / jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java
https://casbin.org
Apache License 2.0
2.4k stars 464 forks source link

Create a jCasbin authorization module for Play #104

Closed hsluoyz closed 1 year ago

hsluoyz commented 4 years ago

See: http://playframework.org/

The repo is created here: https://github.com/jcasbin/play-authz , you can make PR to add code to it.

You can see existing similar authorization modules for Play as reference: https://www.playframework.com/documentation/2.8.x/ModuleDirectory#Authentication-(Login-&-Registration)-and-Authorization-(Restricted-Access)

image

You can refer to how we make middleware for other web frameworks like:

sanbit876 commented 2 years ago

Hello @hsluoyz Can you tell me how to get started with the implementation of this issue

hsluoyz commented 2 years ago

@sanbit876 see my updated comments

sanbit876 commented 2 years ago

Hey @hsluoyz thank u for the updated comment, I have gone through the Documentation of the Play-Framework and integration of the other web frameworks with casbin. Can u guide me on creation of the required classes and methods for the middleware as i saw that each middleware were implemented using different methods and were complex.

hsluoyz commented 2 years ago

@sanbit876 see my updated comments

dspasojevic commented 2 years ago

@sanbit876 did you end up starting on this? I am slightly interested in implementing it.

hsluoyz commented 2 years ago

@dspasojevic I don't think so. You are welcome to contribute it!

FoeverA0 commented 2 years ago

[WeOpen Star]I would like to help

offset-null1 commented 2 years ago

@hsluoyz I would like to contribute. I have gone through jcasbin, play framework and I'm willing to give it a shot.

hsluoyz commented 1 year ago

Done at: https://github.com/jcasbin/play-authz