-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[.NET SDK] ApiToken Credentials not working #58
Labels
bug
Something isn't working
dotnet-sdk
Affects the C#/DotNet SDK
good first issue
Good for newcomers
Comments
Thanks for raising this @Mattieeec3! It seems we're missing a test case for this, we'll add then and push out a new release shortly. (Note: replaces openfga/dotnet-sdk#8) |
rhamzeh
added a commit
that referenced
this issue
Nov 15, 2022
4 tasks
rhamzeh
added a commit
that referenced
this issue
Nov 15, 2022
changes: - feat: regenerate from latest API Document, changes include: - documentation fixes - types that represent enabling wildcards in authorization models - fix: send authorization header to server when ApiToken used (#58) - chore: update test dependencies
rhamzeh
added a commit
that referenced
this issue
Nov 15, 2022
changes: - feat: regenerate from latest API Document, changes include: - documentation fixes - types that represent enabling wildcards in authorization models - fix: send authorization header to server when ApiToken used (#58) - chore: update test dependencies
rhamzeh
added a commit
to openfga/dotnet-sdk
that referenced
this issue
Nov 15, 2022
- feat: regenerate from latest API Document, changes include: - documentation fixes - types that represent enabling wildcards in authorization models - fix: send authorization header to server when ApiToken used (openfga/sdk-generator#58) - chore: update test dependencies
v0.1.2 should be out resolving this issue. Thanks for reporting this and tracking down the fix @Mattieeec3! |
I can confirm it works now, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
dotnet-sdk
Affects the C#/DotNet SDK
good first issue
Good for newcomers
The ApiToken authentication method does not seem to be working, no authorization header is passed even though it is configured.
I took a glance at the code and the BaseClient seems to be created before the Authorization headers get added to the configuration's DefaultHeaders.
ApiClient.cs
The text was updated successfully, but these errors were encountered: