Bitwarden is a secure and free password manager that can be used to store passwords, credit card information, and other sensitive data. With the Bitwarden API, developers can create applications that allow users to securely store and access their data.
Some examples of what can be built using the Bitwarden API include:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bitwarden: {
type: "app",
app: "bitwarden",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.bitwarden.$auth.base_url}/public/members`,
headers: {
Authorization: `Bearer ${this.bitwarden.$auth.oauth_access_token}`,
},
})
},
})
Bitwarden uses OAuth authentication. When you connect your Bitwarden account, Pipedream will open a popup window where you can sign into Bitwarden and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Bitwarden API.
Pipedream requests the following authorization scopes when you connect your account:
api.organization
POST
{{custom_fields.identity_url}}/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
&
scope={{oauth.space_separated_scopes}}
POST
{{custom_fields.identity_url}}/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
&
scope={{oauth.space_separated_scopes}}