{"action":"published","release":{"url":"https://api.github.com/repos/DealerDirect/api-security-bundle/releases/4865433","assets_url":"https://api.github.com/repos/DealerDirect/api-security-bundle/releases/4865433/assets","upload_url":"https://uploads.github.com/repos/DealerDirect/api-security-bundle/releases/4865433/assets{?name,label}","html_url":"https://github.com/DealerDirect/api-security-bundle/releases/tag/v0.4.0","id":4865433,"tag_name":"v0.4.0","target_commitish":"master","name":"Comet Platinum","draft":false,"author":{"login":"hipio","id":3717518,"avatar_url":"https://avatars.githubusercontent.com/u/3717518?v=3","gravatar_id":"","url":"https://api.github.com/users/hipio","html_url":"https://github.com/hipio","followers_url":"https://api.github.com/users/hipio/followers","following_url":"https://api.github.com/users/hipio/following{/other_user}","gists_url":"https://api.github.com/users/hipio/gists{/gist_id}","starred_url":"https://api.github.com/users/hipio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hipio/subscriptions","organizations_url":"https://api.github.com/users/hipio/orgs","repos_url":"https://api.github.com/users/hipio/repos","events_url":"https://api.github.com/users/hipio/events{/privacy}","received_events_url":"https://api.github.com/users/hipio/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2016-12-07T16:17:16Z","published_at":"2016-12-08T10:01:28Z","assets":[],"tarball_url":"https://api.github.com/repos/DealerDirect/api-security-bundle/tarball/v0.4.0","zipball_url":"https://api.github.com/repos/DealerDirect/api-security-bundle/zipball/v0.4.0","body":"# General\r\n\r\nThis release allows you to protect API routes, by restricting them to certain tokens.  \r\n\r\n# Configuration\r\n\r\nThis release requires you to add two variables to your `app/config/config.yml`-file.\r\n\r\n```yaml\r\n# app/config/config.yml\r\n      \r\napi_token_security:\r\n  enforce_path_definition: true\r\n  role_prefix: ~\r\n \r\n```\r\n\r\nThese two values have to be declared, but can be set to null (`~`) if one desires to do so. This would cause their default values to be used, which are as following.\r\n    \r\n    enforce_path_definition: false\r\n    role_prefix: API_TOKEN_\r\n\r\n## Settings explanation\r\n`enforce_path_definition` determines if someone accessing the API, with a valid token, \r\nis allowed to access routes that have not been defined within the `app/config/security.yml`-file.\r\n\r\n`role_prefix` is used to prefix roles with in the `app/config/security.yml`-file. An example of this would be:\r\n\r\n```yaml\r\n# app/config/security.yml\r\n\r\nsecurity:\r\n\r\n  access_control:\r\n    - path: ^/api/v1/foo/bar/.*\r\n      role: API_TOKEN_tokenname\r\n```\r\n\r\nWhere `tokenname` is the name you gave the API token during creation. Since names cannot be duplicates there is no risk of allowing someone accidental access"}}
{"actor":{"display_login":"hipio"}}