{"action":"created","issue":{"url":"https://api.github.com/repos/pac4j/play-pac4j-scala-demo/issues/26","labels_url":"https://api.github.com/repos/pac4j/play-pac4j-scala-demo/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/pac4j/play-pac4j-scala-demo/issues/26/comments","events_url":"https://api.github.com/repos/pac4j/play-pac4j-scala-demo/issues/26/events","html_url":"https://github.com/pac4j/play-pac4j-scala-demo/pull/26","id":125366593,"number":26,"title":"Feature suggestion: Implementing URL protection via a filter","user":{"login":"hugovalk","id":1302261,"avatar_url":"https://avatars.githubusercontent.com/u/1302261?v=3","gravatar_id":"","url":"https://api.github.com/users/hugovalk","html_url":"https://github.com/hugovalk","followers_url":"https://api.github.com/users/hugovalk/followers","following_url":"https://api.github.com/users/hugovalk/following{/other_user}","gists_url":"https://api.github.com/users/hugovalk/gists{/gist_id}","starred_url":"https://api.github.com/users/hugovalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugovalk/subscriptions","organizations_url":"https://api.github.com/users/hugovalk/orgs","repos_url":"https://api.github.com/users/hugovalk/repos","events_url":"https://api.github.com/users/hugovalk/events{/privacy}","received_events_url":"https://api.github.com/users/hugovalk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-07T10:27:02Z","updated_at":"2016-01-26T08:50:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pac4j/play-pac4j-scala-demo/pulls/26","html_url":"https://github.com/pac4j/play-pac4j-scala-demo/pull/26","diff_url":"https://github.com/pac4j/play-pac4j-scala-demo/pull/26.diff","patch_url":"https://github.com/pac4j/play-pac4j-scala-demo/pull/26.patch"},"body":"In order to simplify application development and reducing the risk on mistakes, I think it is useful to have url protection as a filter. \r\n\r\nI have provided an example of how this could work in the scala demo app. Once this solution is approved as being useful, I can perform the necessary changes in the play-pac4j project and update the demo projects accordingly. \r\n\r\nFeatures:\r\n - filter to configure in your Play Filter chain\r\n - configurable via application.conf\r\n   - rules are applied top to bottom - first matching rule wins\r\n   - rules consist of regex and authorizer name\r\n\r\nStill to be done: \r\n - configuration of the client name. \r\n\r\nWhat do people think about this?"},"comment":{"url":"https://api.github.com/repos/pac4j/play-pac4j-scala-demo/issues/comments/174899300","html_url":"https://github.com/pac4j/play-pac4j-scala-demo/pull/26#issuecomment-174899300","issue_url":"https://api.github.com/repos/pac4j/play-pac4j-scala-demo/issues/26","id":174899300,"user":{"login":"hugovalk","id":1302261,"avatar_url":"https://avatars.githubusercontent.com/u/1302261?v=3","gravatar_id":"","url":"https://api.github.com/users/hugovalk","html_url":"https://github.com/hugovalk","followers_url":"https://api.github.com/users/hugovalk/followers","following_url":"https://api.github.com/users/hugovalk/following{/other_user}","gists_url":"https://api.github.com/users/hugovalk/gists{/gist_id}","starred_url":"https://api.github.com/users/hugovalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugovalk/subscriptions","organizations_url":"https://api.github.com/users/hugovalk/orgs","repos_url":"https://api.github.com/users/hugovalk/repos","events_url":"https://api.github.com/users/hugovalk/events{/privacy}","received_events_url":"https://api.github.com/users/hugovalk/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T08:50:38Z","updated_at":"2016-01-26T08:50:38Z","body":"This PR should now include everything for the SecurityFilter, including testcases and fixes #28 "}}