Reduce certificate OAuth scopes to profile only

#212
by A1ex144 - opened

The Unit 4 certificate app uses gr.OAuthProfile.username to find the learner's official score. It does not read or modify the learner's repositories. The current README configuration requests read-repos and write-repos, granting unnecessary access to all personal repositories and discouraging learners from safely claiming an earned certificate.

Removing the two custom scopes retains Hugging Face Spaces' default openid profile OAuth authentication, with no Python or assessment changes. Verified app.py at current main b0cf86a: handle_certificate accepts gr.OAuthProfile and reads profile.username; the HF_TOKEN for publishing certificate records is a separate server-side credential. This PR changes only README metadata. Please review and merge so the final certificate flow can be used without broad repository write access.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment