Oauth Pkce
oauth_pkceOAuth 2.0 PKCE helper (RFC 7636 / OAuth 2.1): generate a code_verifier with its S256 code_challenge plus random state and OIDC nonce, verify that a verifier matches a challenge, or build a complete authorization URL (response_type=code, client_id, redirect_uri, scope, state, nonce, code_challenge, extra parameters such as prompt or audience) and return the verifier / state to keep for the token exchange. Validates verifier length and characters and redirect URIs. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/oauth-pkce
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "oauth_pkce"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | generate | |
| extra | No | authorize-url: additional query parameters, e.g. {"prompt": "consent", "audience": "api"} | |
| scope | No | ||
| state | No | authorize-url: state to use (default: random) | |
| length | No | generate: verifier length | |
| method | No | S256 | |
| clientId | No | ||
| verifier | No | ||
| challenge | No | ||
| redirectUri | No | ||
| responseType | No | code | |
| authorizationEndpoint | No |