pub struct IdentityServiceBuilder { /* private fields */ }Expand description
Builder — the constructor has too many collaborators for a positional new.
Implementations§
Source§impl IdentityServiceBuilder
impl IdentityServiceBuilder
pub fn lockout(self, lockout: Arc<LockoutPolicy>) -> Self
pub fn mfa(self, verifier: Arc<dyn MfaVerifier>) -> Self
Sourcepub fn federated(self, store: Arc<dyn FederatedIdentityStore>) -> Self
pub fn federated(self, store: Arc<dyn FederatedIdentityStore>) -> Self
Enable federated login by supplying the identity-link store.
Sourcepub fn risk(self, engine: Arc<dyn RiskEngine>) -> Self
pub fn risk(self, engine: Arc<dyn RiskEngine>) -> Self
Attach a risk engine for adaptive step-up on (federated or password) login.
Sourcepub fn federation_audit(self, sink: Arc<dyn FederationAudit>) -> Self
pub fn federation_audit(self, sink: Arc<dyn FederationAudit>) -> Self
Attach an audit sink for federated-login decisions.
Sourcepub fn linking(self, linking: LinkingConfig) -> Self
pub fn linking(self, linking: LinkingConfig) -> Self
Override the account-linking / provisioning policy (default is the enterprise-safe posture).
Sourcepub fn password_policy(self, policy: PasswordPolicy) -> Self
pub fn password_policy(self, policy: PasswordPolicy) -> Self
Enforce a password-strength policy at registration (H4).
Sourcepub fn breach_checker(self, checker: Arc<dyn BreachChecker>) -> Self
pub fn breach_checker(self, checker: Arc<dyn BreachChecker>) -> Self
Reject known-breached passwords via an app-supplied checker (HIBP).
Sourcepub fn require_consents(
self,
store: Arc<dyn ConsentStore>,
purposes: Vec<String>,
) -> Self
pub fn require_consents( self, store: Arc<dyn ConsentStore>, purposes: Vec<String>, ) -> Self
Require the listed consent purposes before any token is minted (H5). The
gate lives at the single mint funnel, so it applies to every login path.
pub fn config(self, config: IdentityConfig) -> Self
pub fn build(self) -> IdentityService
Auto Trait Implementations§
impl !RefUnwindSafe for IdentityServiceBuilder
impl !UnwindSafe for IdentityServiceBuilder
impl Freeze for IdentityServiceBuilder
impl Send for IdentityServiceBuilder
impl Sync for IdentityServiceBuilder
impl Unpin for IdentityServiceBuilder
impl UnsafeUnpin for IdentityServiceBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request