Get an access token via client credentials grant.
(
*,
client_id: str = "openshell-ci",
client_secret: str = "ci-test-secret",
)
| 113 | |
| 114 | |
| 115 | def _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 | |
| 130 | def _grpc_channel() -> grpc.Channel: |
no test coverage detected