{"action":"created","issue":{"url":"https://api.github.com/repos/ntkme/github-buttons/issues/10","labels_url":"https://api.github.com/repos/ntkme/github-buttons/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ntkme/github-buttons/issues/10/comments","events_url":"https://api.github.com/repos/ntkme/github-buttons/issues/10/events","html_url":"https://github.com/ntkme/github-buttons/issues/10","id":59398297,"number":10,"title":"Clicking on the Star button does not star it","user":{"login":"onet4","id":5302867,"avatar_url":"https://avatars.githubusercontent.com/u/5302867?v=3","gravatar_id":"","url":"https://api.github.com/users/onet4","html_url":"https://github.com/onet4","followers_url":"https://api.github.com/users/onet4/followers","following_url":"https://api.github.com/users/onet4/following{/other_user}","gists_url":"https://api.github.com/users/onet4/gists{/gist_id}","starred_url":"https://api.github.com/users/onet4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onet4/subscriptions","organizations_url":"https://api.github.com/users/onet4/orgs","repos_url":"https://api.github.com/users/onet4/repos","events_url":"https://api.github.com/users/onet4/events{/privacy}","received_events_url":"https://api.github.com/users/onet4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ntkme/github-buttons/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-01T14:44:24Z","updated_at":"2015-03-04T04:54:02Z","closed_at":null,"body":"Hi,\r\n\r\nI thought the repository gets starred when a visitor logging in to GitHub clicks on the star button. However, it does not seem to do so. It just opens the repository page and the count does not increase. \r\n\r\nIs it supposed to be so?"},"comment":{"url":"https://api.github.com/repos/ntkme/github-buttons/issues/comments/77097075","html_url":"https://github.com/ntkme/github-buttons/issues/10#issuecomment-77097075","issue_url":"https://api.github.com/repos/ntkme/github-buttons/issues/10","id":77097075,"user":{"login":"onet4","id":5302867,"avatar_url":"https://avatars.githubusercontent.com/u/5302867?v=3","gravatar_id":"","url":"https://api.github.com/users/onet4","html_url":"https://github.com/onet4","followers_url":"https://api.github.com/users/onet4/followers","following_url":"https://api.github.com/users/onet4/following{/other_user}","gists_url":"https://api.github.com/users/onet4/gists{/gist_id}","starred_url":"https://api.github.com/users/onet4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onet4/subscriptions","organizations_url":"https://api.github.com/users/onet4/orgs","repos_url":"https://api.github.com/users/onet4/repos","events_url":"https://api.github.com/users/onet4/events{/privacy}","received_events_url":"https://api.github.com/users/onet4/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T04:54:02Z","updated_at":"2015-03-04T04:54:02Z","body":"I think there is no safe way to store the credentials. Even the contents of sessions can be viewed.\r\n\r\nOkay, let's forget about using the API. What about simply redirecting the visitor to the GitHub repository page (or opening it in an iframe page) and automatically clicking on the Star button? If the visitor is not logged in, the GitHub site will redirect the person to the login page. Otherwise, the starring action gets performed. "}}