Skip to content
Snippets Groups Projects
Commit 5cc5b92a authored by Duncan Macleod's avatar Duncan Macleod
Browse files

Merge branch 'token-defaults' into 'main'

Set defaults for token claims

See merge request computing/gwdatafind/client!61
parents 000f4220 111d9f60
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,11 @@ def get(url, *args, **kwargs):
if url.startswith("http://") and requests.__version__ < "2.15.0":
# workaround https://github.com/psf/requests/issues/4025
kwargs.setdefault("cert", False)
kwargs.setdefault("token_audience", [
"{0.scheme}://{0.netloc}".format(urlparse(url)),
"ANY",
])
kwargs.setdefault("token_scope", "read:/frames")
return _get(url, *args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment