MCPcopy
hub / github.com/authlib/authlib / prepare_request_uri_query

Function prepare_request_uri_query

authlib/oauth1/rfc5849/parameters.py:95–106  ·  view source on GitHub ↗

Prepare the Request URI Query. Per `section 3.5.3`_ of the spec. .. _`section 3.5.3`: https://tools.ietf.org/html/rfc5849#section-3.5.3

(oauth_params, uri)

Source from the content-addressed store, hash-verified

93
94
95def prepare_request_uri_query(oauth_params, uri):
96 """Prepare the Request URI Query.
97
98 Per `section 3.5.3`_ of the spec.
99
100 .. _`section 3.5.3`: https://tools.ietf.org/html/rfc5849#section-3.5.3
101
102 """
103 # append OAuth params to the existing set of query components
104 sch, net, path, par, query, fra = urlparse.urlparse(uri)
105 query = url_encode(_append_params(oauth_params, extract_params(query) or []))
106 return urlparse.urlunparse((sch, net, path, par, query, fra))

Callers 1

_renderMethod · 0.85

Calls 3

url_encodeFunction · 0.90
extract_paramsFunction · 0.90
_append_paramsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…