bitwarden / sdk

Bitwarden SDK.
Other
244 stars 41 forks source link

invalid_client on ApiKey authentication for C# S #925

Closed pedrodel99 closed 1 week ago

pedrodel99 commented 2 months ago

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

dani-garcia commented 2 months ago

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!

coltonhurst commented 1 week ago

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