You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!).
The text was updated successfully, but these errors were encountered:
Sigh. I closed the pull request until I find the proper solution.
For what it is worth, the issue is with the "scope=" parameter. Changing it to "scopes=" was not the fix, it just eliminated the problem by accident. There simply can't be a "scope=". If I remove it completely, changing the rest of the string format statement appropriately, the problem is eliminated. I can make a patch if you like, but since it means the "scope" parameter would be removed, it's not my call.
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!).
The text was updated successfully, but these errors were encountered: