{"action":"opened","issue":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1201","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1201/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1201/comments","events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1201/events","html_url":"https://github.com/dropwizard/dropwizard/issues/1201","id":98308291,"number":1201,"title":"Clone method in ChainedAuthFactory always set required to true","user":{"login":"mtakaki","id":6954433,"avatar_url":"https://avatars.githubusercontent.com/u/6954433?v=3","gravatar_id":"","url":"https://api.github.com/users/mtakaki","html_url":"https://github.com/mtakaki","followers_url":"https://api.github.com/users/mtakaki/followers","following_url":"https://api.github.com/users/mtakaki/following{/other_user}","gists_url":"https://api.github.com/users/mtakaki/gists{/gist_id}","starred_url":"https://api.github.com/users/mtakaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtakaki/subscriptions","organizations_url":"https://api.github.com/users/mtakaki/orgs","repos_url":"https://api.github.com/users/mtakaki/repos","events_url":"https://api.github.com/users/mtakaki/events{/privacy}","received_events_url":"https://api.github.com/users/mtakaki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-31T03:11:55Z","updated_at":"2015-07-31T03:11:55Z","closed_at":null,"body":"The class `ChainedAuthFactory` always set the parameter `required` to true in the `clone` method. This is a snippet of the method:\r\n\r\n```\r\n@Override\r\npublic AuthFactory<Object, T> clone(boolean required) {\r\n    ChainedAuthFactory<T> clone = new ChainedAuthFactory<>();\r\n    for (AuthFactory<?, T> factory : factories) {\r\n        clone.addChainedProvider(factory.clone(true));\r\n    }\r\n    return clone;\r\n}\r\n```\r\n\r\nInstead of calling `factory.clone(true)`, it should be `factory.clone(required)`. This makes the authentication always required when `ChainedAuthFactory` is used."}}