Deploy AIOS web (React glide grid + FastAPI slice)
Browse files
platform/core/external_oauth.py
CHANGED
|
@@ -549,6 +549,22 @@ def refresh(refresh_token, *, client_id, resource, runtime_resolver, now=None) -
|
|
| 549 |
# grant was issued to; the refresh token, matched below, is the credential.
|
| 550 |
named = client_id or (row.get("client_id") if isinstance(row, dict) else None)
|
| 551 |
client = book["clients"].get(named)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 552 |
if (not current_ok or not current_match or not isinstance(row, dict)
|
| 553 |
or row.get("disconnected_at") or row.get("tenant") != tenant_key
|
| 554 |
or row.get("client_id") != named
|
|
|
|
| 549 |
# grant was issued to; the refresh token, matched below, is the credential.
|
| 550 |
named = client_id or (row.get("client_id") if isinstance(row, dict) else None)
|
| 551 |
client = book["clients"].get(named)
|
| 552 |
+
if isinstance(row, dict):
|
| 553 |
+
# Which wall refused, as booleans only (never a value): the refresh that ChatGPT
|
| 554 |
+
# sends was refused on staging while the harness passes the same shape.
|
| 555 |
+
print("oauth refresh check: " + ", ".join(f"{k}={v}" for k, v in {
|
| 556 |
+
"material": current_ok, "match": current_match,
|
| 557 |
+
"disconnected": bool(row.get("disconnected_at")),
|
| 558 |
+
"tenant": row.get("tenant") == tenant_key,
|
| 559 |
+
"client_id": row.get("client_id") == named,
|
| 560 |
+
"resource": row.get("resource") == audience,
|
| 561 |
+
"expired": float(row.get("refresh_expires_at") or 0) < issued_at,
|
| 562 |
+
"client": isinstance(client, dict),
|
| 563 |
+
"revoked": bool(isinstance(client, dict) and client.get("revoked_at")),
|
| 564 |
+
"owner": bool(isinstance(client, dict) and client.get("username") == row.get("username")),
|
| 565 |
+
}.items()), flush=True)
|
| 566 |
+
else:
|
| 567 |
+
print("oauth refresh check: no grant row for this token", flush=True)
|
| 568 |
if (not current_ok or not current_match or not isinstance(row, dict)
|
| 569 |
or row.get("disconnected_at") or row.get("tenant") != tenant_key
|
| 570 |
or row.get("client_id") != named
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
14f54b97bdaca0072caf2c9aad4c6040cc2ed31d2eeb8c39cb03e7fa04ba6dac
|