Skip to main content

ScimPlugin

Struct ScimPlugin 

Source
pub struct ScimPlugin { /* private fields */ }

Implementations§

Source§

impl ScimPlugin

Source

pub fn reconcile_projection_endpoint( domain: &str, ) -> AuthResult<ServerEndpoint<Value>>

Request complete-state reconciliation of one provisioning domain.

§Errors

Returns an error if arguments cannot be serialized.

Source

pub fn decommission_managed_connection_endpoint( id: &str, domain: &str, actor: &str, ) -> AuthResult<ServerEndpoint<Value>>

Retire a managed connection and its active credentials through the trusted API.

§Errors

Returns an error if arguments cannot be serialized.

Source

pub fn decommission_connection_endpoint( id: &str, domain: Option<&str>, ) -> AuthResult<ServerEndpoint<Value>>

Permanently bind and retire a connection before its first provisioning request.

§Errors

Returns an error if arguments cannot be serialized.

Source

pub fn list_managed_connection_events_endpoint( id: &str, domain: &str, ) -> AuthResult<ServerEndpoint<Value>>

List the newest 100 connection events in ascending sequence order.

§Errors

Returns an error if the arguments cannot be serialized.

Source

pub fn revoke_managed_credential_endpoint( id: &str, domain: &str, credential: &str, actor: &str, ) -> AuthResult<ServerEndpoint<Value>>

Revoke one domain-owned credential through the trusted server API.

§Errors

Returns an error if the arguments cannot be serialized.

Source

pub fn rotate_managed_credential_endpoint( input: &ScimManagedCredentialRotationInput, ) -> AuthResult<ServerEndpoint<Value>>

Trusted rotation arguments with an actual Date expiry.

§Errors

Returns an error if the arguments cannot be serialized.

Source

pub fn get_managed_connection_endpoint( id: &str, domain: &str, ) -> AuthResult<ServerEndpoint<Value>>

Read domain-owned connection metadata and its current credential policy.

§Errors

Returns an error if the arguments cannot be serialized.

Source

pub fn list_managed_connections_endpoint( domain: &str, ) -> AuthResult<ServerEndpoint<Value>>

List durable connection metadata belonging to one provisioning domain.

§Errors

Returns an error if the input cannot be serialized.

Source

pub fn create_managed_connection_endpoint( input: &ScimManagedConnectionInput, ) -> AuthResult<ServerEndpoint<Value>>

Create a managed connection and one independently hashed bearer credential.

§Errors

Returns an error if the arguments cannot be represented as logical input.

Source§

impl ScimPlugin

Source

pub fn projection<S: AuthSchema>( self, projection: Arc<dyn ScimProjection<S>>, ) -> ConfiguredScimPlugin<S>

Source§

impl ScimPlugin

Source

pub fn identity<S: AuthSchema>( self, identity: Arc<dyn ScimIdentity<S>>, ) -> ConfiguredScimPlugin<S>

Source§

impl ScimPlugin

Source§

impl ScimPlugin

Source

pub const fn new() -> Self

Source

pub fn compatibility(self, options: ScimCompatibilityOptions) -> Self

Configure provisioning-client input compatibility.

Source

pub fn managed_connections(self, options: ScimManagedConnectionOptions) -> Self

Source

pub fn connections(self, connections: Vec<ScimConnectionOptions>) -> Self

Source

pub fn delete_user_endpoint(id: &str) -> AuthResult<ServerEndpoint<()>>

Delete a canonical User and reconcile its durable identity and access state.

§Errors

Returns an error if parameters cannot be serialized.

Source

pub fn patch_group_endpoint(id: &str) -> AuthResult<ServerEndpoint<Value>>

Apply SCIM PATCH operations to a connection-owned canonical Group.

§Errors

Returns an error if parameters cannot be serialized.

Source

pub fn replace_group_endpoint(id: &str) -> AuthResult<ServerEndpoint<Value>>

Replace all mutable attributes of a connection-owned canonical Group.

§Errors

Returns an error if parameters cannot be serialized.

Source

pub fn delete_group_endpoint(id: &str) -> AuthResult<ServerEndpoint<()>>

Delete a connection-owned canonical SCIM Group.

§Errors

Returns an error if parameters cannot be serialized.

Source

pub fn patch_user_endpoint(id: &str) -> AuthResult<ServerEndpoint<Value>>

Apply ordered changes to a connection-owned canonical User.

§Errors

Returns an error if parameters cannot be serialized.

Source

pub fn replace_user_endpoint(id: &str) -> AuthResult<ServerEndpoint<Value>>

Replace the mutable attributes of a connection-owned canonical User.

§Errors

Returns an error if parameters cannot be serialized.

Source

pub const fn create_user_endpoint() -> ServerEndpoint<Value>

Provision a connection-owned canonical SCIM User.

Source

pub const fn create_group_endpoint() -> ServerEndpoint<Value>

Create a connection-owned canonical SCIM Group.

Source

pub const fn users_endpoint() -> ServerEndpoint<Value>

List the connection-owned SCIM Users through the server API.

Source

pub const fn groups_endpoint() -> ServerEndpoint<Value>

List the connection-owned SCIM Groups through the server API.

Source

pub fn user_endpoint(id: &str) -> AuthResult<ServerEndpoint<Value>>

Read a connection-owned SCIM User through the server API.

§Errors

Returns an error if parameters cannot be serialized.

Source

pub fn group_endpoint(id: &str) -> AuthResult<ServerEndpoint<Value>>

Read a connection-owned SCIM Group through the server API.

§Errors

Returns an error if parameters cannot be serialized.

Source

pub const fn service_provider_config_endpoint() -> ServerEndpoint<Value>

Discover the installed SCIM protocol capabilities without credentials.

Source

pub const fn resource_types_endpoint() -> ServerEndpoint<Value>

List the SCIM resource types and their optional extensions.

Source

pub const fn schemas_endpoint() -> ServerEndpoint<Value>

List the SCIM User, Enterprise User and Group schema contracts.

Source

pub fn schema_endpoint(id: &str) -> AuthResult<ServerEndpoint<Value>>

Read a SCIM schema by its raw or URI-encoded identifier.

§Errors

Returns an error if path parameters cannot be serialized.

Source

pub fn resource_type_endpoint(id: &str) -> AuthResult<ServerEndpoint<Value>>

Read one case-sensitive SCIM resource type through the server API.

§Errors

Returns an error if the path parameters cannot be serialized.

Trait Implementations§

Source§

impl<S: AuthSchema> AuthPlugin<S> for ScimPlugin

Source§

fn on_http_request_action<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, req: &'life1 AuthRequest, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = AuthResult<Option<HttpRequestAction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Inspect or replace the physical request. The default preserves existing on_http_request implementations. Request-local configuration has already been resolved from the incoming request, matching the Source HTTP handler.
Source§

fn static_openapi_metadata(&self) -> PluginOpenApiMetadata

Base declarations for documentation without an initialized auth instance.
Source§

fn openapi_metadata(&self, ctx: &AuthInitContext<S>) -> PluginOpenApiMetadata

Documentation annotations collected after all plugins initialize. Override this hook for custom endpoints and model field policies.
Source§

fn name(&self) -> &'static str

Plugin name - should be unique
Source§

fn allowed_media_types(&self, route: &AuthRoute) -> Vec<&'static str>

Media types accepted before request hooks and endpoint dispatch. An empty list disables the media restriction for an application-owned endpoint.
Source§

fn routes(&self) -> Vec<AuthRoute>

Routes that this plugin handles
Source§

fn server_endpoints(&self) -> Vec<EndpointDefinition>

Trusted operations available through host dispatch, independently of HTTP visibility.
Source§

fn validate_endpoint( &self, call: &EndpointCall, _ctx: &AuthContext<S>, ) -> AuthResult<EndpointInput>

Validate actual input after all before-hook patches have been applied. Read more
Source§

fn on_init<'life0, 'life1, 'async_trait>( &'life0 self, _ctx: &'life1 mut AuthInitContext<S>, ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Called when the plugin is initialized
Source§

fn on_endpoint<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, call: &'life1 EndpointCall, ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = AuthResult<EndpointResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Execute a registered operation with validated handler-phase context. Read more
Source§

fn on_request<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, req: &'life1 AuthRequest, ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = AuthResult<Option<AuthResponse>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Called for each request - return Some(response) to handle, None to pass through
Source§

fn rate_limits(&self) -> Vec<PluginRateLimit>

Ordered rate-limit policies supplied by this installed plugin.
Source§

fn endpoint_hooks(&self) -> Vec<&dyn EndpointHook<S>>

Installed logical-call hooks, in this plugin’s registration order.
Source§

fn origin_check_skip_paths(&self) -> Vec<&'static str>

Protocol callback prefixes whose verified state replaces browser origin admission.
Source§

fn session_fields(&self) -> IndexMap<String, FieldConfig>

Session field policies contributed by this registered plugin.
Source§

fn user_fields(&self) -> IndexMap<String, FieldConfig>

Source§

fn account_fields(&self) -> IndexMap<String, FieldConfig>

Source§

fn on_http_request<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _req: &'life1 AuthRequest, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<Option<AuthResponse>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Inspect the original physical HTTP request before routing, body parsing, origin validation and endpoint hooks. Disabled paths and transport/rate limiting middleware run first. Returning a response stops dispatch and later plugin hooks. Server-only endpoint calls do not invoke this hook.
Source§

fn on_http_response<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, _req: &'life1 AuthRequest, _ctx: &'life2 AuthContext<S>, _response: &'life3 AuthResponse, ) -> Pin<Box<dyn Future<Output = Result<Option<AuthResponse>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: 'async_trait,

Observe the routed HTTP response before transport middleware (including CORS). Hooks run in registration order; the first replacement stops this chain. Early HTTP request-hook responses skip this stage. Errors escape dispatch; they cannot reverse writes already committed by an endpoint.
Source§

fn before_request<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _req: &'life1 AuthRequest, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<Option<BeforeRequestAction>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called after route matching and before endpoint dispatch. Read more
Source§

fn on_http_endpoint<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, req: &'life1 AuthRequest, ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<Option<HttpEndpointResponse>, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Dispatch the resolved HTTP endpoint. Existing plugins return logical values through on_request; plugins returning a native raw response can override this method to bypass the endpoint after-hook pipeline.
Source§

fn after_request<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _req: &'life1 AuthRequest, _ctx: &'life2 AuthContext<S>, response: AuthResponse, ) -> Pin<Box<dyn Future<Output = Result<AuthResponse, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Transform a completed response, including redirects and rejections. Read more
Source§

fn on_user_created<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _user: &'life1 <S as AuthSchema>::User, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called after a user is created
Source§

fn on_session_created<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _session: &'life1 <S as AuthSchema>::Session, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called after a session is created
Source§

fn on_user_deleted<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _user_id: &'life1 str, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called before a user is deleted
Source§

fn on_session_deleted<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _session_token: &'life1 str, _ctx: &'life2 AuthContext<S>, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Called before a session is deleted
Source§

impl Clone for ScimPlugin

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ScimPlugin

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ScimPlugin

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more