{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/489","labels_url":"https://api.github.com/repos/docker/distribution/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/489/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/489/events","html_url":"https://github.com/docker/distribution/issues/489","id":73004830,"number":489,"title":"Authentication with Registry 2.0","user":{"login":"sourav82","id":9670913,"avatar_url":"https://avatars.githubusercontent.com/u/9670913?v=3","gravatar_id":"","url":"https://api.github.com/users/sourav82","html_url":"https://github.com/sourav82","followers_url":"https://api.github.com/users/sourav82/followers","following_url":"https://api.github.com/users/sourav82/following{/other_user}","gists_url":"https://api.github.com/users/sourav82/gists{/gist_id}","starred_url":"https://api.github.com/users/sourav82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourav82/subscriptions","organizations_url":"https://api.github.com/users/sourav82/orgs","repos_url":"https://api.github.com/users/sourav82/repos","events_url":"https://api.github.com/users/sourav82/events{/privacy}","received_events_url":"https://api.github.com/users/sourav82/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/distribution/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-04T12:18:31Z","updated_at":"2015-05-21T08:01:29Z","closed_at":"2015-05-15T10:25:35Z","body":"How does the authentication work with registry 2.0? I noticed some config file in documentation like below but the difference between \"silly\" and \" token\" not clear.\r\n\r\nFor \"token\", what should I provide in \"realm\" field? Is it a URL to a authentication service? Then what is \"service\"? Could you please provide some examples on how to use this configuration for setting up authentication? Will it work with self-signed certificates?\r\n\r\nauth:\r\n    silly:\r\n        realm: silly-realm\r\n        service: silly-service\r\n    token:\r\n        realm: token-realm\r\n        service: token-service\r\n        issuer: registry-token-issuer\r\n        rootcertbundle: /root/certs/bundle"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/104171721","html_url":"https://github.com/docker/distribution/issues/489#issuecomment-104171721","issue_url":"https://api.github.com/repos/docker/distribution/issues/489","id":104171721,"user":{"login":"AngryHacker","id":6095363,"avatar_url":"https://avatars.githubusercontent.com/u/6095363?v=3","gravatar_id":"","url":"https://api.github.com/users/AngryHacker","html_url":"https://github.com/AngryHacker","followers_url":"https://api.github.com/users/AngryHacker/followers","following_url":"https://api.github.com/users/AngryHacker/following{/other_user}","gists_url":"https://api.github.com/users/AngryHacker/gists{/gist_id}","starred_url":"https://api.github.com/users/AngryHacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngryHacker/subscriptions","organizations_url":"https://api.github.com/users/AngryHacker/orgs","repos_url":"https://api.github.com/users/AngryHacker/repos","events_url":"https://api.github.com/users/AngryHacker/events{/privacy}","received_events_url":"https://api.github.com/users/AngryHacker/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T08:01:29Z","updated_at":"2015-05-21T08:01:29Z","body":"@stevvooe Can you answer the question here:<a>http://stackoverflow.com/questions/30367803/what-does-the-declare-var-fileinfo-fileinfointernal-mean-in-golang</a> which make me confused? Thanks!"}}