[−][src]Struct oxide_auth::primitives::registrar::ClientMap
A very simple, in-memory hash map of client ids to Client entries.
Methods
impl ClientMap[src]
pub fn new() -> ClientMap[src]
Create an empty map without any clients in it.
pub fn register_client(&mut self, client: Client)[src]
Insert or update the client record.
pub fn set_password_policy<P: PasswordPolicy + 'static>(
&mut self,
new_policy: P
)[src]
&mut self,
new_policy: P
)
Change how passwords are encoded while stored.
Trait Implementations
impl Registrar for ClientMap[src]
fn bound_redirect<'a>(
&self,
bound: ClientUrl<'a>
) -> Result<BoundClient<'a>, RegistrarError>[src]
&self,
bound: ClientUrl<'a>
) -> Result<BoundClient<'a>, RegistrarError>
fn negotiate(
&self,
bound: BoundClient,
_scope: Option<Scope>
) -> Result<PreGrant, RegistrarError>[src]
&self,
bound: BoundClient,
_scope: Option<Scope>
) -> Result<PreGrant, RegistrarError>
Always overrides the scope with a default scope.
fn check(
&self,
client_id: &str,
passphrase: Option<&[u8]>
) -> Result<(), RegistrarError>[src]
&self,
client_id: &str,
passphrase: Option<&[u8]>
) -> Result<(), RegistrarError>
impl Extend<Client> for ClientMap[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = Client>, [src]
I: IntoIterator<Item = Client>,
impl Default for ClientMap[src]
impl FromIterator<Client> for ClientMap[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Client>, [src]
I: IntoIterator<Item = Client>,
Auto Trait Implementations
impl Unpin for ClientMap
impl Send for ClientMap
impl Sync for ClientMap
impl !RefUnwindSafe for ClientMap
impl !UnwindSafe for ClientMap
Blanket Implementations
impl<T> OptRegistrar for T where
T: Registrar, [src]
T: Registrar,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,