pub struct AuthCodeStart {
pub authorize_url: String,
pub redirect_uri: String,
pub extra: Option<Value>,
}Expand description
The output of ChannelLogin::authcode_start: where to send the user, and
the redirect_uri the channel actually used.
redirect_uri is echoed back so the matching complete exchanges the code
with the SAME value the authorize step advertised — OAuth requires them to
match. A channel with a fixed redirect_uri ignores the caller’s hint and
returns its own here.
Fields§
§redirect_uri: String§extra: Option<Value>Opaque channel-owned state minted at start (e.g. a dynamically-registered
OAuth client’s client_id/client_secret/region for AWS IdC) that the
matching complete must hand back to
authcode_exchange. None for static
flows whose authorize URL needs no prior network call.
Auto Trait Implementations§
impl Freeze for AuthCodeStart
impl RefUnwindSafe for AuthCodeStart
impl Send for AuthCodeStart
impl Sync for AuthCodeStart
impl Unpin for AuthCodeStart
impl UnsafeUnpin for AuthCodeStart
impl UnwindSafe for AuthCodeStart
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