Skip to content

Commit

Permalink
Ignore token revocation response body
Browse files Browse the repository at this point in the history
The client is supposed to ignore the response body returned by the
revocation endpoint. The `RevocationRequest::request()` method was
doing this correctly, but `RevocationRequest::request_async()` was
incorrectly expecting an empty response body.

Fixes #282.
  • Loading branch information
ramosbugs committed Aug 17, 2024
1 parent daf4db6 commit 5b2ab88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/revocation.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::basic::BasicErrorResponseType;
use crate::endpoint::{endpoint_request, endpoint_response, endpoint_response_status_only};
use crate::endpoint::{endpoint_request, endpoint_response_status_only};
use crate::{
AccessToken, AsyncHttpClient, AuthType, Client, ClientId, ClientSecret, ConfigurationError,
EndpointState, ErrorResponse, ErrorResponseType, HttpRequest, RefreshToken, RequestTokenError,
Expand Down Expand Up @@ -303,7 +303,9 @@ where
Self: 'c,
C: AsyncHttpClient<'c>,
{
Box::pin(async move { endpoint_response(http_client.call(self.prepare_request()?).await?) })
Box::pin(async move {
endpoint_response_status_only(http_client.call(self.prepare_request()?).await?)
})
}
}

Expand Down

0 comments on commit 5b2ab88

Please sign in to comment.