pub struct JwtConfig {
pub client_id: String,
pub client_secret: String,
pub public_key_id: String,
pub private_key_pem: Vec<u8>,
pub passphrase: Option<String>,
pub enterprise_id: String,
pub user_id: Option<String>,
pub token_url: Option<String>,
}Expand description
JWT server auth config — the fields Box’s box_config.json carries. Set
exactly one subject: enterprise_id for the service account, or user_id
to act as a managed user.
Fields§
§client_id: String§client_secret: String§public_key_id: StringThe publicKeyID from the app’s box_config.json.
private_key_pem: Vec<u8>The RSA private key PEM (optionally passphrase-encrypted).
passphrase: Option<String>The passphrase for an encrypted private_key_pem, if any.
enterprise_id: String§user_id: Option<String>Optional: act as a managed user instead of the enterprise service account.
token_url: Option<String>Optional: defaults to Box’s token endpoint (custom deployments).
Auto Trait Implementations§
impl Freeze for JwtConfig
impl RefUnwindSafe for JwtConfig
impl Send for JwtConfig
impl Sync for JwtConfig
impl Unpin for JwtConfig
impl UnsafeUnpin for JwtConfig
impl UnwindSafe for JwtConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more