Skip to content
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

invalid_client on ApiKey authentication for C# S #925

Open
1 task done
pedrodel99 opened this issue Jul 24, 2024 · 1 comment
Open
1 task done

invalid_client on ApiKey authentication for C# S #925

pedrodel99 opened this issue Jul 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@pedrodel99
Copy link

Steps To Reproduce

Use secret manager on bitwarden.eu then use this code using C# SDK.
`
var bitwardenClient = new BitwardenClient(new BitwardenSettings()
{
ApiUrl = "https://api.bitwarden.eu",
});

bitwardenClient.AccessTokenLogin(""));
`

Expected Result

Connection was suppose to be made...

Actual Result

Thrown exception Bitwarden.Sdk.BitwardenAuthException: 'Received error message from server: [400 Bad Request] {"error":"invalid_client"}'

Screenshots or Videos

image

Additional Context

No response

Operating System

Windows

Operating System Version

No response

Build Version

0.0.1-alpha1

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@pedrodel99 pedrodel99 added the bug Something isn't working label Jul 24, 2024
@dani-garcia
Copy link
Member

Hey there!

This seems similar to this older bug report #209.

Can you try setting ApiUrl = "https://vault.bitwarden.eu" and let me know if that solves your issue? 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
Projects
None yet
Development

No branches or pull requests

2 participants