Check if the uri is over ssl.
(uri)
| 11 | |
| 12 | |
| 13 | def 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 | ) |
no outgoing calls
no test coverage detected
searching dependent graphs…