Hmm… It looks like there might be an old URL and a current one:
Try the current direct quiz URL first
Open the MCP Unit 1 quiz directly
I would try opening that exact URL in the address bar of a normal browser tab, rather than starting the quiz inside the course page or inside the app view of a Hugging Face Space. If this is already the exact address you tried, you can skip this first step.
I did a small public HTTP check on November 28, 2026 (08:54 JST; November 27, 23:54 UTC). The old Space repository address on the Hub redirected to context-course/unit_1_quiz, but the old standalone app hostname, mcp-course-unit-1-quiz.hf.space, returned HTTP 404. The current standalone hostname, context-course-unit-1-quiz.hf.space, returned HTTP 200. The app also returned a response initiating Hugging Face OAuth and advertised a callback on the current hostname.
So there is a concrete difference between those URLs, even though that does not establish the cause of your particular redirect loop. This check did not sign in with an account, complete an OAuth callback, answer any questions, or generate a certificate.
Since you have already tried Edge, InPrivate, Chrome, signing in to the Hub beforehand, and accessing the quiz directly, I would focus on the exact URL and the session associated with it rather than simply suggesting another browser:
- Open the current standalone app URL above in a normal tab. Check that the address bar actually says
context-course-unit-1-quiz.hf.space before starting sign-in.
- If sign-in still loops there, close the quiz tabs, clear the site data for that specific app hostname, and try once more. This is more targeted than deleting all browser data. A fresh normal browser profile is another option if that is convenient.
- If the standalone app works but the embedded quiz does not, use the standalone app to take the quiz. If you specifically want to use the embedded version, a temporary, site-specific third-party cookie exception may help. There is a previous report from this same quiz of solving a problem that way. You do not need to disable cookie protection globally.
- If the current standalone app still loops after those checks, I would report it in the current quiz Space’s Community, mentioning that you have completed Unit 1 but cannot reach the certificate quiz because of sign-in. There is no need to publish your cookies, tokens, or the complete OAuth URLs.
The current Hub page for the quiz is another useful link, particularly for its Files and Community tabs. It is not quite the same test as opening the standalone hf.space app in the address bar.
Some more details, in case the direct URL alone does not solve it, or for someone arriving here from an older course link later:
1. What changed: the course URL, the Hub page, and the app URL
Three different things that can all look like the quiz
The lesson and Hub page are on the same domain; the standalone app is on another. Opening a Hub repository page does not necessarily make the app its own top-level document.
What I observed from the public endpoints
I compared the old and current Hub addresses with the standalone addresses in a small anonymous request test. The observation window was approximately 23:54:50–23:54:54 UTC on November 27, 2026 (08:54:50–08:54:54 JST on November 28).
| Request |
HTTP result |
What was returned |
huggingface.co/spaces/mcp-course/unit_1_quiz |
307 |
Location pointing to the current context-course Space |
huggingface.co/api/spaces/mcp-course/unit_1_quiz |
307 |
Location pointing to the current API resource |
huggingface.co/spaces/context-course/unit_1_quiz |
200 |
Hub page |
huggingface.co/api/spaces/context-course/unit_1_quiz |
200 |
Space metadata identifying the current standalone hostname |
mcp-course-unit-1-quiz.hf.space/ |
404 |
Old standalone address not serving the app in this check |
context-course-unit-1-quiz.hf.space/ |
200 |
Response from the current standalone address |
Current standalone /config |
200 |
Gradio configuration reporting version 5.15.0 |
Current standalone /login/huggingface |
302 |
Redirect to huggingface.co/oauth/authorize |
The API reported RUNNING, matching host/subdomain fields, and repository revision 360fc7994575e3c19ca219d68e7fd305d271370f. This identifies the reported repository revision, not necessarily the code loaded in every running process. The /config version is a separate observation.
These were anonymous requests with no redirect following, authenticated cookies, or access token. Automatic redirect following could otherwise hide the original 307 behind the destination’s 200 response.
This is a point-in-time check of public routes, not evidence of a successful learner sign-in or of how long the old address has been unavailable.
Why the old Hub link can work while the old app link does not
Hugging Face has separate routing for repository pages and Space application addresses. The official documentation on embedding a Space explains that moving or renaming a Space changes its direct URL, and that the actual direct URL can be obtained from the Space menu.
The course certificate lesson source also contains the old app hostname. The lesson has offered both an embedded quiz and a link to the Space. The source may change, and main does not necessarily match the lesson served to every learner.
The legacy course and the current organization
The Context Course organization has a collection for the older MCP course, The MCP Course (Legacy). That gives some context for why a Space with an MCP-specific title might now be found under an organization called context-course.
The Legacy label alone does not establish whether the original certificate remains available. That is a separate question about the course’s certification arrangements.
2. If sign-in still loops: the shortest browser-side checks
A useful way to choose what to try next
| What happens now? |
A useful next action |
Why it helps |
| The standalone app opens and sign-in succeeds |
Take the quiz there |
No need to repair the embedded view just to finish the course |
| Only the course or Hub embedded view loops |
Use the standalone app; optionally try a scoped cookie exception for the embedding site |
Changes the browser’s context while retaining the intended app |
| The current standalone app loads, but sign-in loops |
Clear only that app’s site data and retry once |
Removes a possible stale local app session without disturbing unrelated sites |
| A fresh normal profile works but your usual one does not |
Use the working profile for the quiz, or compare its settings later |
Provides a practical workaround and evidence of a profile-dependent difference |
| The same error occurs in both contexts after those checks |
Report the problem to the quiz Community |
More browser switching is less likely to clarify an app or provider-side problem |
| The quiz becomes usable, but certificate generation fails |
Keep the evidence of passing and report the later failure separately |
Authentication has succeeded far enough to take the quiz; a different stage needs attention |
A. When the current standalone app also loops
A targeted site-data reset is worth considering before changing third-party cookie settings everywhere. Even outside an iframe, a browser can hold an old session for the application. Signing out of the Hub or deleting the usual browser cache does not necessarily remove that session.
If you are not in the middle of an unfinished quiz attempt, close the quiz’s open tabs and clear the stored data associated specifically with context-course-unit-1-quiz.hf.space. Then reopen the standalone app in a normal tab and initiate sign-in from the app itself. Closing the old tabs first also avoids accidentally continuing an earlier authentication attempt in another tab while testing the reset.
For Chrome, see Delete, allow and manage cookies in Chrome. The relevant controls are the ones for a particular site’s stored data, not the global option to erase browsing history. Depending on the version, you can usually reach the site list through Settings, Privacy and security, and the third-party cookie or site-data settings. Search for the exact hostname, inspect the matching entry, and remove that site’s data.
For Edge, the corresponding official guide is Manage cookies in Microsoft Edge. Look for the option to view individual sites’ cookies and site data in Settings, search for the quiz hostname, and remove the matching site’s entry. The layout and naming of the settings may differ by version, language, or organization policy, so the official guide is more useful than memorizing one exact series of menu labels.
I mean the data of the standalone quiz application, not everything under huggingface.co or every site using hf.space. Clearing site data can remove local application preferences, session information, and possibly unfinished work. It is best to do it before starting an attempt, rather than after answering questions. It is not a request to delete your HF account, remove any repositories, or clear all your saved passwords.
Why clearing just the app’s session is worth trying
There is a relevant, though not identical, upstream report: Gradio issue #13634. The report concerns an OAuth redirect loop occurring even outside an iframe. The reporter described resolving it by clearing the Space’s session cookie. The reported Gradio version was 6.3.0, whereas the current quiz’s public configuration in my test reported 5.15.0.
This version difference matters. I would not conclude that the quiz has precisely the same bug or that a patch intended for the other version can be applied directly to the quiz. The issue is useful here as a concrete example of why an iframe-free attempt and a clean application session are two separate diagnostic steps. There is also a related upstream patch proposal, but I have not established which released versions, if any, contain that exact change or how it applies to this deployed app.
B. When only the embedded version fails
If you do want to use the embedded version, there is another possible workaround: allow third-party cookies for the particular top-level site in which you are opening the quiz, provided you trust it and your browser permits that exception. Test whether the quiz can sign in there. If you no longer need the exception, restore the previous privacy setting afterward, especially if you share that browser profile with other work.
The HF documentation on cookie limitations in Spaces explains the cross-site iframe restrictions behind this possible workaround.
In discussion #175 on this quiz, a learner reported success after allowing third-party cookies. This supports trying the workaround, not assigning the same cause to every learner.
Earlier discussion #2 and discussion #116 suggested direct access using the former hostname. These are historical examples, not current links to use. Discussion #124 reported trouble even at the direct address.
C. What a normal window or a clean profile can tell us
Chrome’s cookie settings documentation notes that Incognito blocks third-party cookies by default. Edge also has its own tracking prevention behavior, and the cookie controls and tracking-prevention controls are not interchangeable. A private window may eliminate the usual profile’s old state while imposing different storage restrictions. Thus, a private window failing does not by itself disprove a cookie problem.
If available, a new normal browser profile without the usual extensions and without imported site data is another bounded comparison. It avoids deleting the existing profile’s data. It does require a normal sign-in through the official Hugging Face site, so it may be less convenient than a targeted cookie reset. Browser policies on a managed device can still apply to a fresh profile, and a new profile does not prove that the network or service is behaving identically at two different times.
3. Why a Hub login is not the same as a quiz login
Two kinds of sign-in involved here
Being signed in on huggingface.co and being signed in inside a particular HF OAuth-enabled Space are related, but they are not identical conditions. The former gives you an existing session with the identity provider. The latter requires the app to establish its own authenticated session through that provider.
The HF Spaces OAuth guide describes this arrangement. The quiz README enables HF OAuth, and its app source uses Gradio login and requires an OAuth token and profile for quiz operations and certificate submission.
A simplified conceptual sequence is:
Learner opens the current quiz app
App starts its OAuth authorization request
Browser visits the Hugging Face authorization service
User signs in / authorizes the app if necessary
Provider sends the browser back to the app callback
App validates the transaction and completes token handling
App recognizes the authenticated user session
Learner can start the quiz
Redirects to the provider and back are normal. A loop means the browser keeps navigating without reaching a stable state. A single 302 or 307 does not demonstrate such a loop.
What the current app actually advertised
The anonymous GET to /login/huggingface returned 302, advertising https://huggingface.co/oauth/authorize and a callback on the current app hostname at /login/callback.
Before doing that public check, one plausible explanation was that the Space had been relocated but was still generating an OAuth return URL using its previous app hostname. The observed callback target does not support that particular explanation for the current standalone initiation route. It makes the hypothesis of an obviously stale advertised callback less useful for this route. It does not settle the separate question of which callbacks are accepted by the provider, or whether the browser actually reaches the callback with the necessary session context.
The generated callback and provider-side registration are distinct. An anonymous HTTP request also does not reproduce an embedded browser or an existing learner session.
What the initial cookie attributes do and do not tell us
The initial OAuth response also contained a cookie with the following attributes recorded by the test (not its actual value):
| Attribute |
Recorded result |
Secure |
Present |
HttpOnly |
Present |
SameSite |
None |
Partitioned |
Not present in the recorded response |
These attributes are helpful to understand the intended browser behavior. The Secure attribute restricts transport to a secure context such as HTTPS. HttpOnly prevents ordinary JavaScript cookie access. SameSite=None is an indication that the cookie can be used in cross-site contexts, subject to other browser requirements and policy. The absence of the Partitioned attribute in this particular response is only a description of what the public probe received; it is not a determination that all partitioning behavior in the browser is disabled or that this is a defect.
The important limitation is that a Set-Cookie header from a server and an accepted, later-sent cookie in a real browser are different observations. A client can receive a response with SameSite=None and still reject or restrict the use of the cookie. A browser may also distinguish storage used while the app is a top-level page from storage used while it is embedded under another page. The earlier HTTP test did not run the browser’s cookie policy and did not send the observed cookie back on subsequent requests.
Why session continuity and the callback matter
An OAuth transaction involves more than receiving a code at a URL. The application needs to associate the returned result with the transaction that it initiated. The HF OAuth guide describes validating the state parameter as part of that flow. This association helps prevent an authorization response from being accepted in the wrong session.
If transaction state cannot be recovered, a callback may fail and the app may restart login. Repeated retries can become a loop. This is a possible mechanism, not an observation of your session.
Other possibilities include provider access restrictions, callback registration, token handling, application errors or navigation behavior. The visible browser error does not distinguish these.
I would leave transaction validation in place. Disabling state checks, changing an OAuth client ID, supplying a personal access token to the quiz, or manually replaying an old callback URL is not an appropriate workaround for a learner. The goal is to restore the ordinary authenticated quiz flow, not to remove its security checks. The OAuth security best current practice provides additional context for maintainers who are considering changes to redirects and transaction handling.
4. If neither route works: a useful report without sharing credentials
Where I would take the remaining issue
If the current standalone app still loops, the quiz Community is the most directly relevant report location; the certificate lesson also directs learners there.
If you find that the current app works but an old course page still embeds an invalid hostname, that would be a somewhat different report. The MCP course source repository or its appropriate issue channel may be relevant for a lesson-link update. The application Community remains appropriate for an OAuth failure inside the current app. There is no need to duplicate the entire report in several places. Linking an existing relevant report or noting the two layers in one report is usually enough to give a maintainer context.
A minimal report that would distinguish the main cases
You have already given useful information: several browsers or modes, prior Hub sign-in, direct access attempts, and the symptom. I would not ask you to repeat all of that in a new debugging checklist. If the current app still fails, a few additions to the existing information would help:
| Information |
Why it is useful |
| The exact starting app hostname, without any authentication query string |
Distinguishes an old link, a Hub wrapper, and the current standalone app |
| Whether you opened it in the address bar or inside a course/Hub page |
Distinguishes the top-level and embedded contexts |
| Approximate date, time, and time zone |
Allows a maintainer to compare with deployments or service logs if available |
| Browser/version and normal or private mode |
Makes the environment clearer without requiring a full system inventory |
| Whether clearing only the quiz’s site data made a difference, if you tried it |
Distinguishes a possible local session issue from one that persists after a reset |
| The last visible stage before the loop |
Helps narrow the problem to initiation, authorization, callback, app session, or a later operation |
Optional, if you are comfortable with browser developer tools
You do not need to collect a browser network trace to make a useful report. If the previous checks have failed and you happen to be comfortable with DevTools, a very small, manually redacted sequence can help indicate where the repeated navigation occurs.
Both Chrome’s Network panel documentation and Edge’s Network tool reference describe preserving requests across navigations. In a normal attempt, you can open the Network panel and enable the relevant preserve-log option, then initiate the login from the current app. When the error occurs, look at the document-navigation requests. You can note just the host, ordinary route path, and status, without copying the actual URL or headers.
For example, a report might use a structure like the following (these are placeholders, not a trace I recorded from the failing quiz):
Starting page: current standalone quiz
Browser / mode: [browser version, normal tab]
Time: [date and time with time zone]
Hub login: [already signed in / other observation]
First navigation: [host, safe path, status]
Provider page: [visible / not visible / unknown]
Return to quiz: [host, safe path, status if known]
Repeated navigation: [same safe host/path or unknown]
Visible error: [short error text]
If you cannot tell what part of the request is safe, it is better to omit the network trace and just report the visible browser behavior. Some sites include sensitive identifiers in paths, not only in query parameters. A short summary such as “the provider page appears, then the browser returns to the quiz and starts sign-in again” can be useful without exposing any URLs from the transaction.
What not to include in a public issue
- Full authorization or callback URLs, including their query parameters or fragments.
- Authorization codes, access tokens, refresh tokens, identity tokens, OAuth state values, or login/session cookies.
- Request and response headers containing credentials or identifying data, or bodies from authentication requests.
- Unreviewed screenshots of the Network or Application panels, where account identifiers and session values may be visible.
- Raw HAR captures, complete browser storage exports, or copied authentication-related requests as shell commands.
A browser’s sanitized HAR export can be helpful in a suitable private diagnostic workflow, but it does not guarantee that every sensitive query parameter, body, path, or identifying field has been removed. I would not make uploading even a sanitized HAR to a public quiz discussion a default step. A manually summarized observation is sufficient for the first report.
Some things that may help a Space/course maintainer, rather than the learner
First, compare the lesson’s embedded and fallback URLs with the current declared hostname. Correcting an obsolete link helps independently of the authentication issue.
Second, compare the generated callback with the provider registration and verify callback acceptance. The current standalone initiation already advertises the current host.
Third, the maintainer can distinguish a callback that never arrives from a callback that arrives but cannot establish an authenticated session. The latter may involve session or transaction handling, but should be checked against the actual deployed version and server-side observations. Repeating the authorization request indefinitely is not a substitute for presenting a bounded failure and a recoverable way to start a fresh login. The upstream Gradio issue provides one version-specific example worth comparing, not a diagnosis of this quiz.
Fourth, test actual sign-in separately in top-level and embedded browser contexts. Loading HTML or seeing the login button is not an authentication test.
The public requirements file is also useful context for version-specific investigation. Its Gradio 5.15.0 pin agrees with the version reported by the app’s public configuration in the request test. This does not confirm every installed dependency at runtime. There is a significant difference between seeing a fix in a current upstream source tree, seeing a fix in a release, and confirming that the running quiz is using that release. A maintainer investigating a specific behavior would ideally compare the version actually running with the relevant code and release history before applying a proposed patch.
5. If you can take the quiz but cannot get the certificate
A separate stage of the same learner goal
A simplified model of the intended sequence is:
App opens
Authentication succeeds
Quiz can be started
Questions are completed and evaluated
Passing result is displayed
Certificate artifact is generated
Artifact is stored / a certificate link is produced
What the public app source suggests about the later stages
The public app code separates authentication, grading, image generation and upload to a dataset. This is source inspection, not an end-to-end test.
The code allows a passing message even when certificate upload fails and includes fallback link behavior. Passing and obtaining a hosted certificate can therefore be separate outcomes.
The source references mcp-course/certificates. A repository lookup also found context-course/certificates, but existence through both identifiers does not prove identity or write permissions. No upload was attempted.
Some relevant reports after the quiz stage
Earlier discussion #195 and discussion #204 concern certificate-stage trouble. They may be useful if you reach that stage; I have not verified their current resolution or a connection to the login loop.
| Outcome |
Useful information to retain or report |
| Cannot sign in |
Current app URL, login behavior, and browser context |
| Signed in but cannot start the quiz |
Whether the application recognizes the login and what the Start action does |
| Can complete questions but no result appears |
The visible error and whether submission finished |
| Passing result shown, no certificate |
Passing message, approximate time, and the error during certificate generation |
| Certificate image shown, hosted link not working |
The distinction between a locally visible artifact and an unavailable hosted link |
For the last two cases, if the ordinary UI allows it, it may be useful to keep a local copy of the displayed passing result or certificate image while asking the maintainers how to proceed. This is a way to preserve evidence of what the app displayed. A saved screenshot or image is not necessarily an official credential record or a substitute for a verifiable course certificate. It also does not guarantee that the maintainer can reconstruct the result if the official storage operation failed.
Keeping the old MCP certificate distinct from the new Context Course
The current Context Course introduction and certification information describes that course’s own learning and certification requirements. There is a distinction between those requirements and the older MCP course’s Unit 1 examination. The fact that the earlier quiz has been moved under the current organization does not by itself turn an older exam into an exam for the new course, or vice versa.
If the intended older quiz still works through the current app, using that route would seem preferable to changing the course you are trying to complete. If it turns out that the original issuance mechanism is no longer available, a clarification from the course maintainers about existing learners would be especially valuable: is there an intended current route for taking the original Unit 1 quiz, or some officially supported way of handling learners who completed the older material?
I cannot establish an alternative issuance route, promise a manual certificate, or infer that you must retake a different course from the URL evidence alone.
For now, the current standalone URL is the first thing I would try. If you already used that exact address, a targeted app-session reset is the next small check. If it still loops, the Community report can focus on the current app and the certificate you are trying to obtain.