Extract parameters from the post authorization redirect response URL. :param url: The full URL that resulted from the user being redirected back from the OAuth provider to you, the client. :returns: A dict of parameters extracted from the URL.
(self, url)
| 134 | return self._fetch_token(url, **kwargs) |
| 135 | |
| 136 | def parse_authorization_response(self, url): |
| 137 | """Extract parameters from the post authorization redirect |
| 138 | response URL. |
| 139 | |
| 140 | :param url: The full URL that resulted from the user being redirected |
| 141 | back from the OAuth provider to you, the client. |
| 142 | :returns: A dict of parameters extracted from the URL. |
| 143 | """ |
| 144 | token = dict(url_decode(urlparse.urlparse(url).query)) |
| 145 | self.token = token |
| 146 | return token |
| 147 | |
| 148 | def _fetch_token(self, url, **kwargs): |
| 149 | resp = self.session.post(url, auth=self.auth, **kwargs) |