{"action":"closed","issue":{"url":"https://api.github.com/repos/miguelgrinberg/flasky/issues/60","repository_url":"https://api.github.com/repos/miguelgrinberg/flasky","labels_url":"https://api.github.com/repos/miguelgrinberg/flasky/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/miguelgrinberg/flasky/issues/60/comments","events_url":"https://api.github.com/repos/miguelgrinberg/flasky/issues/60/events","html_url":"https://github.com/miguelgrinberg/flasky/issues/60","id":101537246,"number":60,"title":"How to skip the httpauth","user":{"login":"alex1007","id":523684,"avatar_url":"https://avatars.githubusercontent.com/u/523684?v=3","gravatar_id":"","url":"https://api.github.com/users/alex1007","html_url":"https://github.com/alex1007","followers_url":"https://api.github.com/users/alex1007/followers","following_url":"https://api.github.com/users/alex1007/following{/other_user}","gists_url":"https://api.github.com/users/alex1007/gists{/gist_id}","starred_url":"https://api.github.com/users/alex1007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex1007/subscriptions","organizations_url":"https://api.github.com/users/alex1007/orgs","repos_url":"https://api.github.com/users/alex1007/repos","events_url":"https://api.github.com/users/alex1007/events{/privacy}","received_events_url":"https://api.github.com/users/alex1007/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/miguelgrinberg/flasky/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-18T00:19:02Z","updated_at":"2016-06-01T16:23:42Z","closed_at":"2016-06-01T16:23:42Z","body":"Suppose that I have logged in Flasky, and want to get resources via API. How do I use api without typing in username and password again? Can I use current_user.is_authenticated() to do it?\r\n\r\n    @api.before_request\r\n    @auth.login_required\r\n    def before_request():\r\n        if not g.current_user.is_anonymous and \\\r\n            not g.current_user.confirmed:\r\n        return forbidden('Unconfirmed account')\r\n"}}
{"actor":{"display_login":"miguelgrinberg"}}