pub struct OauthConfig {
pub key_path: PathBuf,
pub encryption_key: Option<String>,
pub plc_directory: String,
pub scope: String,
}Expand description
Wiring for the Rust-native OAuth client.
Fields§
§key_path: PathBufPath to the client’s ES256 signing key. Encrypted at rest with
encryption_key, in the SAME enc.v1 format the sidecar writes, so the
two can share one file and a rollback finds the key it expects.
encryption_key: Option<String>Passphrase for the at-rest encryption of the signing key and the stored
sessions. None leaves them in PLAINTEXT, which validate_secrets
refuses on a production-like instance when the Rust backend is selected
— that is the only configuration in which these tables are written.
plc_directory: StringThe PLC directory used to resolve did:plc documents.
scope: StringThe OAuth scope requested at login. Part of the dev client_id, so
changing it changes the client’s identity in dev.
Trait Implementations§
Source§impl Clone for OauthConfig
impl Clone for OauthConfig
Source§impl Debug for OauthConfig
impl Debug for OauthConfig
Auto Trait Implementations§
impl Freeze for OauthConfig
impl RefUnwindSafe for OauthConfig
impl Send for OauthConfig
impl Sync for OauthConfig
impl Unpin for OauthConfig
impl UnsafeUnpin for OauthConfig
impl UnwindSafe for OauthConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more