denyOAuthRequest
POST
/api/v1/oauth/deny
const url = 'https://example.com/api/v1/oauth/deny';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"client":"example","redirectUri":"https://example.com","scope":"example","state":"example","challenge":"example","method":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/oauth/deny \ --header 'Content-Type: application/json' \ --data '{ "client": "example", "redirectUri": "https://example.com", "scope": "example", "state": "example", "challenge": "example", "method": "example" }'Requires an enrolled dashboard session and the X-CSRF-Token header. Records nothing and returns the redirect carrying access_denied, the state, and iss. A tilecast-ios denial without a usable Origin is refused instead of returning a redirect without iss.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters”X-CSRF-Token
string
Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
client
required
string
redirectUri
required
string format: uri
scope
required
string
state
string
challenge
required
string
method
S256, or omitted. The Server rejects any other value.
string
Examplegenerated
{ "client": "example", "redirectUri": "https://example.com", "scope": "example", "state": "example", "challenge": "example", "method": "example"}Responses
Section titled “ Responses ”Validated redirect carrying access_denied
Media typeapplication/json
object
data
required
object
redirectUri
required
string format: uri
Examplegenerated
{ "data": { "redirectUri": "https://example.com" }}The authorization request is not valid
Dashboard authentication required
CSRF token required