{"action":"created","issue":{"url":"https://api.github.com/repos/dropwizard-bundles/dropwizard-api-key-bundle/issues/8","labels_url":"https://api.github.com/repos/dropwizard-bundles/dropwizard-api-key-bundle/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard-bundles/dropwizard-api-key-bundle/issues/8/comments","events_url":"https://api.github.com/repos/dropwizard-bundles/dropwizard-api-key-bundle/issues/8/events","html_url":"https://github.com/dropwizard-bundles/dropwizard-api-key-bundle/pull/8","id":117515486,"number":8,"title":"Add support for Dropwizard 0.9.","user":{"login":"omodica","id":637009,"avatar_url":"https://avatars.githubusercontent.com/u/637009?v=3","gravatar_id":"","url":"https://api.github.com/users/omodica","html_url":"https://github.com/omodica","followers_url":"https://api.github.com/users/omodica/followers","following_url":"https://api.github.com/users/omodica/following{/other_user}","gists_url":"https://api.github.com/users/omodica/gists{/gist_id}","starred_url":"https://api.github.com/users/omodica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omodica/subscriptions","organizations_url":"https://api.github.com/users/omodica/orgs","repos_url":"https://api.github.com/users/omodica/repos","events_url":"https://api.github.com/users/omodica/events{/privacy}","received_events_url":"https://api.github.com/users/omodica/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-18T05:20:09Z","updated_at":"2015-11-18T05:23:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dropwizard-bundles/dropwizard-api-key-bundle/pulls/8","html_url":"https://github.com/dropwizard-bundles/dropwizard-api-key-bundle/pull/8","diff_url":"https://github.com/dropwizard-bundles/dropwizard-api-key-bundle/pull/8.diff","patch_url":"https://github.com/dropwizard-bundles/dropwizard-api-key-bundle/pull/8.patch"},"body":"[Fixes #7] Most of the authentication changes resolve around the use of the Principal interface and optionally providing support for authorization through an Authorizer.\r\n\r\nThe simplest (and likely most common) use of the API bundle, and closest to the version targeting Dropwizard 0.8, is to use the DefaultApiKeyBundle which uses the default implementation of the Principal interface (provided by the Dropwizard Auth module) and a permit all authorization scheme. You do need to annotate your resource with a Principal type instead of a String, however given the Principal interface is provided through a base package (java.security) this will meets the desire to avoid using interfaces/classes from the library in the resources (one of the reason ApiKey was refactored to a String in an earlier release).\r\n\r\nHowever if you require the use of a different Principal implementation, or an extending type, you can use the ApiKeyBundle directly and provide the Principal type and a PrincipalFactory. You can also provide an Authorizer if needed.\r\n\r\nThe migration changes are fully documented here: https://github.com/dropwizard/dropwizard/wiki/Upgrade-guide-0.8.x-to-0.9.x."},"comment":{"url":"https://api.github.com/repos/dropwizard-bundles/dropwizard-api-key-bundle/issues/comments/157608289","html_url":"https://github.com/dropwizard-bundles/dropwizard-api-key-bundle/pull/8#issuecomment-157608289","issue_url":"https://api.github.com/repos/dropwizard-bundles/dropwizard-api-key-bundle/issues/8","id":157608289,"user":{"login":"omodica","id":637009,"avatar_url":"https://avatars.githubusercontent.com/u/637009?v=3","gravatar_id":"","url":"https://api.github.com/users/omodica","html_url":"https://github.com/omodica","followers_url":"https://api.github.com/users/omodica/followers","following_url":"https://api.github.com/users/omodica/following{/other_user}","gists_url":"https://api.github.com/users/omodica/gists{/gist_id}","starred_url":"https://api.github.com/users/omodica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omodica/subscriptions","organizations_url":"https://api.github.com/users/omodica/orgs","repos_url":"https://api.github.com/users/omodica/repos","events_url":"https://api.github.com/users/omodica/events{/privacy}","received_events_url":"https://api.github.com/users/omodica/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T05:23:13Z","updated_at":"2015-11-18T05:23:13Z","body":"Note that I actually didn't mean to suggest this be merged into master (Github failed me), but rather that if possible a dropwizard-0.9 branch be created and a 0.9.x-y release generated off that branch in addition to the 0.8.x-y train."}}