Struct oxide_auth::primitives::registrar::ClientUrl
source · pub struct ClientUrl<'a> {
pub client_id: Cow<'a, str>,
pub redirect_uri: Option<Cow<'a, ExactUrl>>,
}
Expand description
A pair of client_id
and an optional redirect_uri
.
Such a pair is received in an Authorization Code Request. A registrar which allows multiple
urls per client can use the optional parameter to choose the correct url. A prominent example
is a native client which uses opens a local port to receive the redirect. Since it can not
necessarily predict the port, the open port needs to be communicated to the server (Note: this
mechanism is not provided by the simple ClientMap
implementation).
Fields§
§client_id: Cow<'a, str>
The identifier indicated
redirect_uri: Option<Cow<'a, ExactUrl>>
The parsed url, if any.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ClientUrl<'a>
impl<'a> Send for ClientUrl<'a>
impl<'a> Sync for ClientUrl<'a>
impl<'a> Unpin for ClientUrl<'a>
impl<'a> UnwindSafe for ClientUrl<'a>
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