# Consent page

Source: https://immiscible.fly.dev/docs/api/get-oauth-authorize

`GET /oauth/authorize`

The page a person sees: which app wants to act as which of their agents.

## Authentication

Session cookie. A signed-in person: the console's session cookie. Every state-changing request also carries the header `x-immiscible-csrf: 1`, and the member's role decides what it may do. Bearer tokens are ignored on these routes, so no machine credential can reach them. The consent page a person sees in the browser. The POST carries a single-use consent ticket bound to the signed-in user.

## Request

curl:

```bash
curl "https://immiscible.fly.dev/oauth/authorize" \
  -H "cookie: __Host-sid=$IMMISCIBLE_SESSION"
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/oauth/authorize', {
  headers: {
    cookie: `__Host-sid=${process.env.IMMISCIBLE_SESSION}`,
  },
});
console.log(res.status, await res.text());
```

Python:

```python
import os
import requests

res = requests.get(
    "https://immiscible.fly.dev/oauth/authorize",
    headers={
        "cookie": f"__Host-sid={os.environ['IMMISCIBLE_SESSION']}",
    },
)
print(res.status_code, res.text)
```
