You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding per #266 (comment). A couple of places in a azure_identity use reqwest directly. They issue a HTTP request, but do not check for a successful error code. Certain errors will have an error response that can be deserialized. In most cases, I'm not sure it is worth trying to deserialize an error message.
client
.post(url).header("ContentType","Application / WwwFormUrlEncoded").body(encoded).send().await?
.text().await.map(|s| -> Result<LoginResponse,Error>{Ok(serde_json::from_str::<LoginResponse>(&s)?)})?
// TODO The HTTP status code should be checked to deserialize an error response.// serde_json::from_str::<crate::errors::ErrorResponse>(&s).map(Error::ErrorResponse)
The text was updated successfully, but these errors were encountered:
Adding per #266 (comment). A couple of places in a azure_identity use reqwest directly. They issue a HTTP request, but do not check for a successful error code. Certain errors will have an error response that can be deserialized. In most cases, I'm not sure it is worth trying to deserialize an error message.
sdk\identity\src\device_code_flow\mod.rs
sdk\identity\src\client_credentials_flow\mod.rs
The text was updated successfully, but these errors were encountered: