pub struct Pending { /* private fields */ }
Expand description
Represents a valid, currently pending client credentials not bound to an owner.
This will be passed along to the solicitor to obtain the owner ID, and then a token will be issued. Since this is the client credentials flow, a pending response is considered an internal error.
Implementations§
Source§impl Pending
impl Pending
Sourcepub fn as_solicitation(&self) -> Solicitation<'_>
pub fn as_solicitation(&self) -> Solicitation<'_>
Reference this pending state as a solicitation.
Sourcepub async fn issue(
self,
handler: &mut (dyn Endpoint + Send),
owner_id: String,
allow_refresh_token: bool,
) -> Result<BearerToken, Error>
pub async fn issue( self, handler: &mut (dyn Endpoint + Send), owner_id: String, allow_refresh_token: bool, ) -> Result<BearerToken, Error>
Inform the backend about consent from a resource owner.
Use negotiated parameters to authorize a client for an owner. The endpoint SHOULD be the same endpoint as was used to create the pending request.
Auto Trait Implementations§
impl Freeze for Pending
impl RefUnwindSafe for Pending
impl Send for Pending
impl Sync for Pending
impl Unpin for Pending
impl UnwindSafe for Pending
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