Sign ExecutionToken payload with the Org CA private key. Args: private_key_pem: Org CA PKCS8 PEM private key. token_data: Dict of token fields (as passed to ExecutionToken.to_signable_payload()). Returns: Base64url-encoded Ed25519 CA signature.
(
private_key_pem: str,
token_data: dict[str, Any],
)
| 194 | |
| 195 | |
| 196 | def sign_token_payload( |
| 197 | private_key_pem: str, |
| 198 | token_data: dict[str, Any], |
| 199 | ) -> str: |
| 200 | """ |
| 201 | Sign ExecutionToken payload with the Org CA private key. |
| 202 | |
| 203 | Args: |
| 204 | private_key_pem: Org CA PKCS8 PEM private key. |
| 205 | token_data: Dict of token fields (as passed to ExecutionToken.to_signable_payload()). |
| 206 | |
| 207 | Returns: |
| 208 | Base64url-encoded Ed25519 CA signature. |
| 209 | """ |
| 210 | payload = canonical_json(token_data) |
| 211 | return sign_payload(private_key_pem, payload) |
nothing calls this directly
no test coverage detected