sdk icon indicating copy to clipboard operation
sdk copied to clipboard

invalid_client on ApiKey authentication for C# S

Open pedrodel99 opened this issue 1 year ago • 1 comments

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

  • [X] 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 avatar Jul 24 '24 12:07 pedrodel99

Hey there!

This seems similar to this older bug report https://github.com/bitwarden/sdk/issues/209.

Can you try setting ApiUrl = "https://vault.bitwarden.eu" and let me know if that solves your issue? Thanks!

dani-garcia avatar Jul 24 '24 13:07 dani-garcia

Hey @pedrodel99 please feel to re-open if you run into the same issue again 😊

coltonhurst avatar Oct 09 '24 19:10 coltonhurst