TokenResponseMapping configures custom field extraction from non-standard token responses.
Some OAuth providers (e.g., GovSlack) nest token fields under non-standard paths
instead of returning them at the top level. When set, ToolHive performs the token
exchange HTTP call directly and extracts fields using the configured dot-notation paths.
If nil, standard OAuth 2.0 token response parsing is used.
accessTokenPath
string required
AccessTokenPath is the dot-notation path to the access token in the response.
Example: "authed_user.access_token"
minLength: 1
expiresInPath
string
ExpiresInPath is the dot-notation path to the expires_in value (in seconds).
If not specified, defaults to "expires_in".
refreshTokenPath
string
RefreshTokenPath is the dot-notation path to the refresh token in the response.
If not specified, defaults to "refresh_token".
scopePath
string
ScopePath is the dot-notation path to the scope string in the response.
If not specified, defaults to "scope".