pub struct OidcConfig {
pub issuer_url: String,
pub client_id: String,
pub client_secret: String,
pub scopes: String,
pub display_name: String,
pub groups_claim: String,
pub username_claim: String,
pub admin_group: String,
pub editor_group: String,
pub viewer_group: Option<String>,
}Fields§
§issuer_url: StringIssuer URL, e.g. https://auth.example.org/application/o/teamcraft/.
client_id: String§client_secret: String§scopes: StringSpace separated scopes requested at the authorization endpoint.
display_name: StringLabel of the login button, e.g. “Single Sign-On”.
groups_claim: StringClaim that carries the list of group names.
username_claim: StringClaim used as username for newly provisioned users.
admin_group: StringMembers of this group become administrators.
editor_group: StringMembers of this group become CAD editors.
viewer_group: Option<String>If set, users must be member of this group (or of the admin/editor group) to log in at all; they get the viewer role. If unset, every user of the IdP application gets at least viewer access.
Implementations§
Source§impl OidcConfig
impl OidcConfig
Sourcepub fn redirect_uri(&self, public_url: &str) -> String
pub fn redirect_uri(&self, public_url: &str) -> String
The redirect URI that must be registered at the identity provider.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OidcConfig
impl RefUnwindSafe for OidcConfig
impl Send for OidcConfig
impl Sync for OidcConfig
impl Unpin for OidcConfig
impl UnsafeUnpin for OidcConfig
impl UnwindSafe for OidcConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.