bitwarden_auth/api/enums/
scope.rs

1use serde::{Deserialize, Serialize};
2
3/// The OAuth 2.0 scopes recognized by the Bitwarden API.
4/// Scopes define the specific permissions an access token grants to the client.
5/// They are requested by the client during token acquisition and enforced by the
6/// resource server when the token is used.
7#[derive(Serialize, Deserialize, Debug)]
8pub(crate) enum Scope {
9    /// The scope for accessing send resources outside the context of a Bitwarden user.
10    #[serde(rename = "api.send.access")]
11    ApiSendAccess,
12    // TODO: Add other scopes as needed.
13}