MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / _get_ci_token

Function _get_ci_token

e2e/python/oidc/oidc_auth_test.py:115–127  ·  view source on GitHub ↗

Get an access token via client credentials grant.

(
    *,
    client_id: str = "openshell-ci",
    client_secret: str = "ci-test-secret",
)

Source from the content-addressed store, hash-verified

113
114
115def _get_ci_token(
116 *,
117 client_id: str = "openshell-ci",
118 client_secret: str = "ci-test-secret",
119) -> str:
120 """Get an access token via client credentials grant."""
121 return _token_request(
122 {
123 "grant_type": "client_credentials",
124 "client_id": client_id,
125 "client_secret": client_secret,
126 }
127 )
128
129
130def _grpc_channel() -> grpc.Channel:

Callers 1

Calls 1

_token_requestFunction · 0.85

Tested by

no test coverage detected