Skip to content

OAuth PKCE getting access token is not working #334

Open
@jppgmx

Description

@jppgmx

Before you start
Have you checked StackOverflow, previous issues, and Dropbox Developer Forums for help? Yes

What is your question?
I'm using the OAuth PKCE example to receive an access token, everything works fine, however an HttpListenerException is thrown saying: Access is denied. For that I changed the LoopbackHost value (127.0.0.1) to localhost, that worked, but in System.Diagnostics.Process.Start() it threw a Win32Exception saying it cannot find the specified file.

So some questions to try:

  1. For Windows, which address is suitable for LoopbackHost?
  2. What could change in System.Diagnostics.Process.Start()? Do you have any alternative to open the URL?
  3. Executing these two actions above, will something change in the HttpListener structure? (I'm referring to those two redirection methods defined in Program.cs)

Versions

  • What version of the SDK are you using? 6.36.0
  • What version of the language are you using? ASP .NET Core 5 (Blazor Server Side Application) and latest C# Language for .NET 5
  • What platform are you using? Windows 7

Additional context
That existing SDK example I refer to was added 2 years ago and this SDK is up to date, I think something has changed. (Wouldn't it be better to update all examples?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions