bitwarden_auth/send_access/
mod.rs

1//! The SendAccess module handles send access token requests and responses.
2//! We use a custom extension OAuth2 grant type to request send access tokens
3//! outside the context of a Bitwarden user. This will be used by the send portion of the
4//! Bitwarden web app to allow users to access send access functionality without
5//! needing to log in to a Bitwarden account.
6//! Sends can be anonymous, password protected, or email protected.
7//! If you request an access token for an anonymous send by id, no credentials are required.
8//! If you request an access token for a password protected send, you must provide a correct
9//! password hash. If you request an access token for an email protected send, you must provide the
10//! email address and a one-time passcode (OTP) sent to that email address.
11mod access_token_request;
12mod access_token_response;
13mod client;
14
15pub mod api;
16
17pub use access_token_request::{
18    SendAccessCredentials, SendAccessTokenRequest, SendEmailCredentials, SendEmailOtpCredentials,
19    SendPasswordCredentials,
20};
21pub use access_token_response::{
22    SendAccessTokenError, SendAccessTokenResponse, UnexpectedIdentityError,
23};
24pub use client::SendAccessClient;