MCPcopy Create free account
hub / github.com/comaps/comaps / FindOauthCode

Function FindOauthCode

tools/python/oauth2-flow/oauth2_flow.py:198–202  ·  view source on GitHub ↗
(redirectUri)

Source from the content-addressed store, hash-verified

196
197
198def FindOauthCode(redirectUri):
199 query = urllib.parse.urlparse(redirectUri).query
200 params = {k:v for (k,v) in urllib.parse.parse_qsl(query)}
201
202 return params.get('code', None)
203
204
205def encodeCookies(cookies):

Callers 2

FetchRequestTokenFunction · 0.70
SendAuthRequestFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected