Skip to content

Blank html returned by auth server due to "scope=" parameter from GenerateAuthUrl in OAuth2Service.cs #7

@myloxian

Description

@myloxian

When I would run OAuth2Service.ConsoleApp, I would get a connection to the auth server, followed by a new window opening in my browser (chrome Version 92.0.4515.159 (Official Build) (64-bit)), but it would present a blank white window and the apiclient.config file would not get updated with an access token. Using the browser "inspect" would yield an empty html header and body. Removing "&scope=" from the url allowed it to work, so I checked the code and found a minor typo? If it matters, this was directed at sandbox-api.digkey.com.

Examining the code OAuth2Service.cs, I noticed that the documentation says that the "scopes" param is unused. Looking at line 57 I could see that it was using "scope=" instead of "scopes=". I changed it and all is working fine.

If I knew how to do it, I would provide a patch/push/pull request (I don't even know which one it is!).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions