fossa_exchange_oidc_token
Check whether an OIDC trust relationship is configured correctly by performing the token exchange a CI job would perform, returning the resolved identity and metadata without exposing the live token.
Instructions
Check that an OIDC trust relationship actually works, by performing the token exchange a CI job would perform.
WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true and FOSSA_ALLOW_ADMIN=true.
The FOSSA API token this mints is deliberately not returned. What comes
back is the identity FOSSA resolved (user, provider, issuer, subject) and the
credential's metadata (whether it is push-only, when it expires) with the
token itself replaced by a placeholder. A live API token in a tool result is
a credential in a model's context, a transcript, and every log downstream of
it; that is not a trade this server makes, and there is no argument that
turns it back on. A CI job that needs the real token should call
POST /oidc/token-exchange directly.
So use this to answer "is my trust relationship configured correctly?", not to obtain a token. Note that the token is still minted and still valid until it expires (15 minutes to 12 hours) even though nobody here can read it.
token is the JWT the identity provider issued; username is the FOSSA
service account to log in as. FOSSA reports an invalid token, an unknown
provider, and "no matching trust relationship" all as a 400.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| username | Yes | ||
| expires_in | No | ||
| provider_id | Yes | ||
| is_push_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||