Trait oauth2_client::device_authorization_grant::provider_ext::ProviderExtDeviceAuthorizationGrant[][src]

pub trait ProviderExtDeviceAuthorizationGrant: Provider + DynClone {
    fn device_authorization_endpoint_url(&self) -> &Url;

    fn scopes_default(&self) -> Option<Vec<<Self as Provider>::Scope>> { ... }
fn device_authorization_request_body_extra(
        &self
    ) -> Option<Map<String, Value>> { ... }
fn device_authorization_request_rendering(
        &self,
        _body: &DeviceAuthorizationRequestBody<<Self as Provider>::Scope>
    ) -> Option<Result<Request<Body>, Box<dyn Error + Send + Sync + 'static>>> { ... }
fn device_authorization_response_parsing(
        &self,
        _response: &Response<Body>
    ) -> Option<Result<Result<DeviceAuthorizationResponseSuccessfulBody, DeviceAuthorizationResponseErrorBody>, Box<dyn Error + Send + Sync + 'static>>> { ... }
fn device_access_token_request_body_extra(
        &self,
        _body: &BodyWithDeviceAuthorizationGrant,
        _device_authorization_response_body: &DeviceAuthorizationResponseSuccessfulBody
    ) -> Option<Map<String, Value>> { ... }
fn device_access_token_request_rendering(
        &self,
        _body: &BodyWithDeviceAuthorizationGrant,
        _device_authorization_response_body: &DeviceAuthorizationResponseSuccessfulBody
    ) -> Option<Result<Request<Body>, Box<dyn Error + Send + Sync + 'static>>> { ... }
fn device_access_token_response_parsing(
        &self,
        _response: &Response<Body>
    ) -> Option<Result<Result<Result<AccessTokenResponseSuccessfulBody<<Self as Provider>::Scope>, AccessTokenResponseErrorBody>, DeviceAccessTokenEndpointRetryReason>, Box<dyn Error + Send + Sync + 'static>>> { ... } }

Required methods

Provided methods

Trait Implementations

Formats the value using the given formatter. Read more

Implementors