Skip to content

Swagger UI hits nonexistant breakpoint in Edge (with debugging) when returning from oauth2 authentication while any breakpoint is set in the project. #10237

Description

@HunterAhlquist

Q&A (please complete the following information)

  • OS: Windows 10
  • Browser: Edge (debugging enabled)
  • Version: 7.2.0
  • Method of installation: NuGet
  • Swagger-UI version: 7.2.0
  • Swagger/OpenAPI version: 7.2.0

Content & configuration

Example Swagger/OpenAPI definition:
N/A

Swagger-UI configuration options:

SwaggerUI({
  c.SwaggerEndpoint("/swagger/v1/swagger.json", "[REDACTED] v1");
  c.OAuthClientId(ad["ClientId"]);
  c.OAuthScopes(ad["Scopes"]);
  c.OAuthUsePkce();
  c.OAuthScopeSeparator(" ");
  c.ConfigObject.AdditionalItems.Add("requestSnippetsEnabled", true);
})

Describe the bug you're encountering

In my API project that uses Microsoft/Azure oauth2 authentication, whenever I set a breakpoint anywhere in my project to debug endpoints before logging in, upon returning from the auth page, the browser appears as if a browser breakpoint was hit.

To reproduce...

Steps to reproduce the behavior:

  1. Create an API that utilizes oauth2
  2. Set a breakpoint anywhere in the project (an authorized controller for example)
  3. Attempt to log into oauth2
  4. Upon returning with authentication, SwaggerUI will show the above screen, unable to proceed

Expected behavior

The UI continues to operate as no breakpoint should have been hit after returning from authentication.

Screenshots

My IDE shows no breakpoint hit, no other tabs are open.
image

Additional context or thoughts

There are a lot of different interactions going on here, not 100% sure where this could actually be happening, SwaggerUI is my best guess. I want to use edge due to Microsoft automatically logging in to speed up debugging

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleIssue inactive over 1 year with no comments or reactions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions