---
title: "Oauth Deny"
method: POST
path: "/api/v1/auth/oauth/deny"
---

# Oauth Deny

`POST /api/v1/auth/oauth/deny`

## Request

- Base URL: `https://api.mesharc.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mesharc.dev/api/v1/auth/oauth/deny`
- Auth: none declared

Turn the app away. A session is all this needs: it mints nothing, so a
member who cannot connect an app can still decline one rather than being
shown a button that refuses them.

It validates the request all the same. A route that redirects wherever it
is told is an open redirect, whatever it declines.

## Headers

- `authorization` string, nullable
- `x-mesharc-tenant` string, nullable

## Request body

- OAuthDecision
  - `client_id` string, required
  - `redirect_uri` string, required
  - `code_challenge` string, required
  - `code_challenge_method` string
  - `scope` string
  - `state` string, nullable
  - `resource` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mesharc/apis/mesharc-api.md) · [All operations](https://skmtc.dev/mesharc/apis/mesharc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mesharc/apis/mesharc-api/revisions/d63cc02dfec2?raw)
