Expand description
§Bitwarden Auth
Contains the implementation of the auth functionality for the Bitwarden Password Manager.
§Send Access
- Manages obtaining send access tokens for accessing secured send endpoints.
§Login
LoginClient: Authenticates Bitwarden users to obtain access tokens.
§Available Login Methods
- Password: Email and master password authentication (2FA not yet supported)
- Future: SSO, device-based, etc.
Modules§
- api 🔒
- Module for API specific types / enums / etc. Note: API in the this case is generically used for any API calls. Not BW API vs BW Identity on server.
- auth_
client 🔒 - login
- The Login module provides the LoginClient and related types for authenticating Bitwarden users via various mechanisms (password, SSO, etc.) to obtain OAuth2 tokens from the Bitwarden Identity API.
- registration
- Client for account registration and cryptography initialization related API methods. It is used both for the initial registration request in the case of password registrations, and for cryptography initialization for a jit provisioned user. After a method on this client is called, the user account should have initialized account keys, an authentication method such as SSO or master password, and a decryption method such as key-connector, TDE, or master password.
- send_
access - The SendAccess module handles send access token requests and responses. We use a custom extension OAuth2 grant type to request send access tokens outside the context of a Bitwarden user. This will be used by the send portion of the Bitwarden web app to allow users to access send access functionality without needing to log in to a Bitwarden account. Sends can be anonymous, password protected, or email protected. If you request an access token for an anonymous send by id, no credentials are required. If you request an access token for a password protected send, you must provide a correct password hash. If you request an access token for an email protected send, you must provide the email address and a one-time passcode (OTP) sent to that email address.
- token_
management - Token renewal module.
Structs§
- Auth
Client - Subclient containing auth functionality.
Constants§
- UNIFFI_
META_ 🔒CONST_ NAMESPACE_ BITWARDEN_ AUTH - Export namespace metadata.
Traits§
- Auth
Client Ext - Extension trait for
Clientto provide access to theAuthClient.