MCPcopy
hub / github.com/authlib/authlib / parse_authorization_response

Method parse_authorization_response

authlib/oauth1/client.py:136–146  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 1

test_parse_response_urlFunction · 0.80

Calls 1

url_decodeFunction · 0.90

Tested by 1

test_parse_response_urlFunction · 0.64