{"action":"created","issue":{"url":"https://api.github.com/repos/lordlothar99/strategy-spring-security-acl/issues/28","repository_url":"https://api.github.com/repos/lordlothar99/strategy-spring-security-acl","labels_url":"https://api.github.com/repos/lordlothar99/strategy-spring-security-acl/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/lordlothar99/strategy-spring-security-acl/issues/28/comments","events_url":"https://api.github.com/repos/lordlothar99/strategy-spring-security-acl/issues/28/events","html_url":"https://github.com/lordlothar99/strategy-spring-security-acl/issues/28","id":163282416,"number":28,"title":"how to implement without database","user":{"login":"raafaar","id":18176122,"avatar_url":"https://avatars.githubusercontent.com/u/18176122?v=3","gravatar_id":"","url":"https://api.github.com/users/raafaar","html_url":"https://github.com/raafaar","followers_url":"https://api.github.com/users/raafaar/followers","following_url":"https://api.github.com/users/raafaar/following{/other_user}","gists_url":"https://api.github.com/users/raafaar/gists{/gist_id}","starred_url":"https://api.github.com/users/raafaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raafaar/subscriptions","organizations_url":"https://api.github.com/users/raafaar/orgs","repos_url":"https://api.github.com/users/raafaar/repos","events_url":"https://api.github.com/users/raafaar/events{/privacy}","received_events_url":"https://api.github.com/users/raafaar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-30T22:40:50Z","updated_at":"2016-07-01T08:49:37Z","closed_at":null,"body":"hello,\r\nI found this project because I'm interested in using an implementation that isn't database-oriented. I would like to implement it in a more programmatic and object-oriented way.\r\n\r\nI'm lost about making this programmatic implementation. Could someone help me?\r\nI've checked the sample, but I haven't figure out how could it be stored, Using a class?, A config file? Is that implementation included in the project?\r\nI hope someone give me a clue or a guide?\r\nthank you in advance"},"comment":{"url":"https://api.github.com/repos/lordlothar99/strategy-spring-security-acl/issues/comments/229892815","html_url":"https://github.com/lordlothar99/strategy-spring-security-acl/issues/28#issuecomment-229892815","issue_url":"https://api.github.com/repos/lordlothar99/strategy-spring-security-acl/issues/28","id":229892815,"user":{"login":"lordlothar99","id":3019346,"avatar_url":"https://avatars.githubusercontent.com/u/3019346?v=3","gravatar_id":"","url":"https://api.github.com/users/lordlothar99","html_url":"https://github.com/lordlothar99","followers_url":"https://api.github.com/users/lordlothar99/followers","following_url":"https://api.github.com/users/lordlothar99/following{/other_user}","gists_url":"https://api.github.com/users/lordlothar99/gists{/gist_id}","starred_url":"https://api.github.com/users/lordlothar99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordlothar99/subscriptions","organizations_url":"https://api.github.com/users/lordlothar99/orgs","repos_url":"https://api.github.com/users/lordlothar99/repos","events_url":"https://api.github.com/users/lordlothar99/events{/privacy}","received_events_url":"https://api.github.com/users/lordlothar99/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T08:49:37Z","updated_at":"2016-07-01T08:49:37Z","body":"hi @raafaar ! your need is exactly the purpose of this project. indeed I may help you to implement programmatic secturity-ACL implementation. Are you familiar with Spring and Spring-security ?\r\nin order to implement your ACL strategy, here what you need:\r\n1. a Spring-based application (with Spring-boot it's even better)\r\n2. a maven based project (so you have to include both the github repository and the artifact `strategy-spring-security-acl-grant`, as described in \"Installation\" section of the README)\r\n3. for method-execution filter, add Spring-security annotations on the methods `@PreAuthorize(\"hasPermission(... )\")`\r\n4. Add `Acl(\"myStrategy\")` annotation on the object passed in the `hasPermission` invocation set before\r\n5. Create a `GrantEvaluator` class ; this is the class which will be called each time the annotated method will be called\r\n5. Create a `SimpleAclStrategy` Spring bean named \"myStrategy\", containing the `GrantEvaluator` you just set\r\n\r\nIf your project is already hosted somewhere public, feel free to send me a link so it would be easier to help you."}}
{"actor":{"display_login":"lordlothar99"}}