Bitwarden Public API Invalid_client

Hi guys,

Im trying to use the bitwarden public API to manage users but for some reason, I am not able to generate an access token using my organization API key.
I keep getting a 400 response invalid_client.

Im doing a post to “https://identity.bitwarden.eu/connect/token
auth_data = {
‘grant_type’: ‘client_credentials’,
‘client_id’: client_id,
‘client_secret’: client_secret,
‘scope’: ‘api.organization’
}

headers = {
‘Content-Type’: ‘application/x-www-form-urlencoded’
}

Did anyone face this issue before or can help me here please?

Thanks!

getting the same thing here as well. using the bitwarden python sdk. i feel like some underlying api changed, but was never updated in the docs/sdk.

doh, figured it out for my case. the token was expired. generating a new token fixed this issue.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.