abidlabs/workflow-scopes-test-13767
0
Test Space for gradio PR #13767 (workflow: warn when a Space's OAuth scopes are missing).
This Space is deliberately misconfigured. The metadata above has a bare hf_oauth: true with no hf_oauth_scopes: list, so the Hub grants only openid and profile. That is exactly the state this PR detects.
You must sign in to see the warning. Scopes bind to the OAuth token, so a signed-out visitor is unaffected and is deliberately not warned.
Once signed in:
- A warning toast naming
inference-apiandwrite-repos, what each unlocks, and telling you to add them underhf_oauth_scopes. - The Unsaved · Save button (visible after you edit the canvas) is disabled, with the reason in its tooltip, instead of failing with a 403.
To see the fixed state, add this to the metadata above and redeploy:
hf_oauth_scopes:
- inference-api
- write-reposRunning the PR build of gradio:
pip install https://huggingface.co/buckets/gradio/pypi-previews/resolve/ba7417f24f14d3aad7cd07e91107b34548fabc9d/gradio-6.24.0-py3-none-any.whl