MCPcopy Index your code
hub / github.com/authlib/authlib / is_secure_transport

Function is_secure_transport

authlib/common/security.py:13–21  ·  view source on GitHub ↗

Check if the uri is over ssl.

(uri)

Source from the content-addressed store, hash-verified

11
12
13def is_secure_transport(uri):
14 """Check if the uri is over ssl."""
15 if os.getenv("AUTHLIB_INSECURE_TRANSPORT"):
16 return True
17
18 uri = uri.lower()
19 return uri.startswith(
20 ("https://", "http://localhost:", "http://127.0.0.1:", "http://[::1]:")
21 )

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…