Strawberry Shake Tooling download command does not send scope(s) to token endpoint #5319
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Describe the bug
Trying to use the download command dotnet graphql download retrieving the token from azure ad to pass to our graphql endpoint in order to retrieve schema generates unhandled exception.
Steps to reproduce
Relevant log output
Additional Context?
Running tooling code in debug the problem appears to be in hotchocolate-12.12.1\src\StrawberryShake\Tooling\src\dotnet-graphql\OAuth\AuthArgumentsBase.cs
Lines 62,63,64 currently are:
This code returns the Enumerable.Empty when Scopes.HasValue() is true.
It should be:
returning a collection of scopes if there are any and an empty collection if not.
Happy to submit this as a PR with a little guidance.
Product
Strawberry Shake
Version
12.12.1
The text was updated successfully, but these errors were encountered: