MCPcopy Create free account
hub / github.com/mlco2/codecarbon / _discover_endpoints

Function _discover_endpoints

codecarbon/cli/auth.py:77–81  ·  view source on GitHub ↗

Fetch OpenID Connect discovery document.

()

Source from the content-addressed store, hash-verified

75
76
77def _discover_endpoints():
78 """Fetch OpenID Connect discovery document."""
79 resp = requests.get(AUTH_SERVER_WELL_KNOWN)
80 resp.raise_for_status()
81 return resp.json()
82
83
84# ── Credential storage ──────────────────────────────────────────────

Callers 3

_validate_access_tokenFunction · 0.85
_refresh_tokensFunction · 0.85
authorizeFunction · 0.85

Calls 1

jsonMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…