#[non_exhaustive]pub enum OidcFault {
AuthDisabled,
ExternalAuth,
MissingKey,
BaseUrl(String),
NoProvider,
ProviderKey(String),
DuplicateProvider(String),
Issuer(String),
ReservedParam(String, String),
}Expand description
Why the panel’s provider sign-in cannot be served:
DeclarationErrorKind::Oidc.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AuthDisabled
Auth::oidc on Auth::disabled, which signs nobody in.
Turn authentication on.
ExternalAuth
Auth::oidc on Auth::external, whose app signs every user in itself.
Sign in through the provider in the app, or use Auth::custom.
MissingKey
The router registers no cookie Key, which seals a sign-in’s secrets while the browser
is at the provider.
Call .with(Key::from(..)) before .panel(..).
BaseUrl(String)
Oidc::new’s base URL is not an absolute https origin.
Pass the app’s public origin, such as https://app.example.com.
NoProvider
Oidc without a provider.
Add one with Oidc::provider.
ProviderKey(String)
A provider key that is not lowercase ASCII letters, digits and -.
Rename the provider.
DuplicateProvider(String)
Two providers with one key.
Give each a distinct key.
Issuer(String)
A provider whose issuer is not an https URL, nor an http one on a loopback host.
Fix the issuer.
ReservedParam(String, String)
A provider’s param names an authorization parameter the panel sets: the provider key,
then the parameter.
Drop the parameter.
Trait Implementations§
impl Eq for OidcFault
impl StructuralPartialEq for OidcFault
Auto Trait Implementations§
impl Freeze for OidcFault
impl RefUnwindSafe for OidcFault
impl Send for OidcFault
impl Sync for OidcFault
impl Unpin for OidcFault
impl UnsafeUnpin for OidcFault
impl UnwindSafe for OidcFault
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.