{"action":"opened","issue":{"url":"https://api.github.com/repos/litl/rauth/issues/188","labels_url":"https://api.github.com/repos/litl/rauth/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/litl/rauth/issues/188/comments","events_url":"https://api.github.com/repos/litl/rauth/issues/188/events","html_url":"https://github.com/litl/rauth/issues/188","id":124822873,"number":188,"title":"rauth Oauthsession1 with twitters' verify credentials api ","user":{"login":"jmgamboa","id":3579209,"avatar_url":"https://avatars.githubusercontent.com/u/3579209?v=3","gravatar_id":"","url":"https://api.github.com/users/jmgamboa","html_url":"https://github.com/jmgamboa","followers_url":"https://api.github.com/users/jmgamboa/followers","following_url":"https://api.github.com/users/jmgamboa/following{/other_user}","gists_url":"https://api.github.com/users/jmgamboa/gists{/gist_id}","starred_url":"https://api.github.com/users/jmgamboa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmgamboa/subscriptions","organizations_url":"https://api.github.com/users/jmgamboa/orgs","repos_url":"https://api.github.com/users/jmgamboa/repos","events_url":"https://api.github.com/users/jmgamboa/events{/privacy}","received_events_url":"https://api.github.com/users/jmgamboa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-04T19:34:33Z","updated_at":"2016-01-04T19:34:33Z","closed_at":null,"body":"I'm using rauth to identify the authenticating user, using twitter's verify credentials endpoint as specified on their docs. The access token and secret come from my frontend.  When I set my consumer credentials, (my apps creds), I can get a valid response, returning the apps owner, however setting the authenticating user's creds, I will get a 401. Am I misusing this rauth-client inteface?  \r\nAm i supposed to set my app's credentials to in OAuth1Session? If that is the case, where do I pass the authenticating user's token and secret?\r\n\r\nclass TwitterAuth():\r\n    \"\"\"\r\n    twitter auth class\r\n    \"\"\"\r\n    # api client for oauth1 \r\n    tw_rauth = rauth.OAuth1Session(\r\n                    \"xxxxxxxxxxxxxxxxxx\",\r\n                    \"xxxxxxxxxxxxxxxxxx\",\r\n                    access_token=\"\",\r\n                    access_token_secret=\"\",\r\n                    )\r\n    profile = {}\r\n\r\n    def get_profile(self, auth_user_access, auth_user_secret):\r\n        \"\"\"\r\n        get profile using verify Credentials\r\n        verify credentials will return the user given\r\n        of an access token and secret\r\n        \"\"\"\r\n        self.tw_rauth.access_token = auth_user_access\r\n        self.tw_rauth.access_token_secret = auth_user_secret\r\n        profile = self.tw_rauth.get('https://api.twitter.com/1.1/account/verify_credentials.json',\r\n                params={'format': 'json'})\r\n        if profile.status_code == 200:\r\n            self.profile = profile.json()\r\n           return self.profile\r\n        else:\r\n            raise ValidationError('Credentials Provided Were Not Valid')\r\n\r\nnew_user = TwitterAuth().get_profile(auth_user_access, auth_user_secret)"}}