ConfigSaml

Struct ConfigSaml 

Source
pub struct ConfigSaml {
Show 33 fields pub enable: Option<bool>, pub enable_sync_with_ldap: Option<bool>, pub enable_sync_with_ldap_include_auth: Option<bool>, pub ignore_guests_ldap_sync: Option<bool>, pub verify: Option<bool>, pub encrypt: Option<bool>, pub sign_request: Option<bool>, pub idp_url: Option<String>, pub idp_descriptor_url: Option<String>, pub idp_metadata_url: Option<String>, pub service_provider_identifier: Option<String>, pub assertion_consumer_service_url: Option<String>, pub signature_algorithm: Option<String>, pub canonical_algorithm: Option<String>, pub scoping_idp_provider_id: Option<String>, pub scoping_idp_name: Option<String>, pub idp_certificate_file: Option<String>, pub public_certificate_file: Option<String>, pub private_key_file: Option<String>, pub id_attribute: Option<String>, pub enable_admin_attribute: Option<bool>, pub admin_attribute: Option<String>, pub first_name_attribute: Option<String>, pub last_name_attribute: Option<String>, pub email_attribute: Option<String>, pub username_attribute: Option<String>, pub nickname_attribute: Option<String>, pub locale_attribute: Option<String>, pub position_attribute: Option<String>, pub login_button_text: Option<String>, pub login_button_color: Option<String>, pub login_button_border_color: Option<String>, pub login_button_text_color: Option<String>,
}

Fields§

§enable: Option<bool>

Basic

§enable_sync_with_ldap: Option<bool>§enable_sync_with_ldap_include_auth: Option<bool>§ignore_guests_ldap_sync: Option<bool>§verify: Option<bool>§encrypt: Option<bool>§sign_request: Option<bool>§idp_url: Option<String>§idp_descriptor_url: Option<String>§idp_metadata_url: Option<String>§service_provider_identifier: Option<String>§assertion_consumer_service_url: Option<String>§signature_algorithm: Option<String>§canonical_algorithm: Option<String>§scoping_idp_provider_id: Option<String>§scoping_idp_name: Option<String>§idp_certificate_file: Option<String>§public_certificate_file: Option<String>§private_key_file: Option<String>§id_attribute: Option<String>

User Mapping

§enable_admin_attribute: Option<bool>§admin_attribute: Option<String>§first_name_attribute: Option<String>§last_name_attribute: Option<String>§email_attribute: Option<String>§username_attribute: Option<String>§nickname_attribute: Option<String>§locale_attribute: Option<String>§position_attribute: Option<String>§login_button_text: Option<String>§login_button_color: Option<String>§login_button_border_color: Option<String>§login_button_text_color: Option<String>

Implementations§

Source§

impl ConfigSaml

Source

pub fn enable(&self) -> bool

Returns the value of enable, or the default value if enable is unset.

Source

pub fn enable_sync_with_ldap(&self) -> bool

Returns the value of enable_sync_with_ldap, or the default value if enable_sync_with_ldap is unset.

Source

pub fn enable_sync_with_ldap_include_auth(&self) -> bool

Returns the value of enable_sync_with_ldap_include_auth, or the default value if enable_sync_with_ldap_include_auth is unset.

Source

pub fn ignore_guests_ldap_sync(&self) -> bool

Returns the value of ignore_guests_ldap_sync, or the default value if ignore_guests_ldap_sync is unset.

Source

pub fn verify(&self) -> bool

Returns the value of verify, or the default value if verify is unset.

Source

pub fn encrypt(&self) -> bool

Returns the value of encrypt, or the default value if encrypt is unset.

Source

pub fn sign_request(&self) -> bool

Returns the value of sign_request, or the default value if sign_request is unset.

Source

pub fn idp_url(&self) -> &str

Returns the value of idp_url, or the default value if idp_url is unset.

Source

pub fn idp_descriptor_url(&self) -> &str

Returns the value of idp_descriptor_url, or the default value if idp_descriptor_url is unset.

Source

pub fn idp_metadata_url(&self) -> &str

Returns the value of idp_metadata_url, or the default value if idp_metadata_url is unset.

Source

pub fn service_provider_identifier(&self) -> &str

Returns the value of service_provider_identifier, or the default value if service_provider_identifier is unset.

Source

pub fn assertion_consumer_service_url(&self) -> &str

Returns the value of assertion_consumer_service_url, or the default value if assertion_consumer_service_url is unset.

Source

pub fn signature_algorithm(&self) -> &str

Returns the value of signature_algorithm, or the default value if signature_algorithm is unset.

Source

pub fn canonical_algorithm(&self) -> &str

Returns the value of canonical_algorithm, or the default value if canonical_algorithm is unset.

Source

pub fn scoping_idp_provider_id(&self) -> &str

Returns the value of scoping_idp_provider_id, or the default value if scoping_idp_provider_id is unset.

Source

pub fn scoping_idp_name(&self) -> &str

Returns the value of scoping_idp_name, or the default value if scoping_idp_name is unset.

Source

pub fn idp_certificate_file(&self) -> &str

Returns the value of idp_certificate_file, or the default value if idp_certificate_file is unset.

Source

pub fn public_certificate_file(&self) -> &str

Returns the value of public_certificate_file, or the default value if public_certificate_file is unset.

Source

pub fn private_key_file(&self) -> &str

Returns the value of private_key_file, or the default value if private_key_file is unset.

Source

pub fn id_attribute(&self) -> &str

Returns the value of id_attribute, or the default value if id_attribute is unset.

Source

pub fn enable_admin_attribute(&self) -> bool

Returns the value of enable_admin_attribute, or the default value if enable_admin_attribute is unset.

Source

pub fn admin_attribute(&self) -> &str

Returns the value of admin_attribute, or the default value if admin_attribute is unset.

Source

pub fn first_name_attribute(&self) -> &str

Returns the value of first_name_attribute, or the default value if first_name_attribute is unset.

Source

pub fn last_name_attribute(&self) -> &str

Returns the value of last_name_attribute, or the default value if last_name_attribute is unset.

Source

pub fn email_attribute(&self) -> &str

Returns the value of email_attribute, or the default value if email_attribute is unset.

Source

pub fn username_attribute(&self) -> &str

Returns the value of username_attribute, or the default value if username_attribute is unset.

Source

pub fn nickname_attribute(&self) -> &str

Returns the value of nickname_attribute, or the default value if nickname_attribute is unset.

Source

pub fn locale_attribute(&self) -> &str

Returns the value of locale_attribute, or the default value if locale_attribute is unset.

Source

pub fn position_attribute(&self) -> &str

Returns the value of position_attribute, or the default value if position_attribute is unset.

Source

pub fn login_button_text(&self) -> &str

Returns the value of login_button_text, or the default value if login_button_text is unset.

Source

pub fn login_button_color(&self) -> &str

Returns the value of login_button_color, or the default value if login_button_color is unset.

Source

pub fn login_button_border_color(&self) -> &str

Returns the value of login_button_border_color, or the default value if login_button_border_color is unset.

Source

pub fn login_button_text_color(&self) -> &str

Returns the value of login_button_text_color, or the default value if login_button_text_color is unset.

Trait Implementations§

Source§

impl Clone for ConfigSaml

Source§

fn clone(&self) -> ConfigSaml

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ConfigSaml

Source§

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

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

impl Default for ConfigSaml

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for ConfigSaml

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Message for ConfigSaml

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for ConfigSaml

Source§

fn eq(&self, other: &ConfigSaml) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ConfigSaml

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ConfigSaml

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<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<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> 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<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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,