Skip to content

Commit 8a16c8b

Browse files
mcalingheesandhose
andcommitted
Apply suggestions from code review
Co-authored-by: Quentin Gliech <[email protected]>
1 parent 6b09c2f commit 8a16c8b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

crates/handlers/src/oauth2/end_session.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ pub(crate) enum RouteError {
4848
#[error("client is unauthorized")]
4949
UnauthorizedClient,
5050

51-
// #[error("unsupported token type")]
52-
// UnsupportedTokenType,
5351
#[error("unknown token")]
5452
UnknownToken,
5553
}
@@ -78,19 +76,12 @@ impl IntoResponse for RouteError {
7876
)
7977
.into_response(),
8078

81-
// Self::ClientNotAllowed |
8279
Self::UnauthorizedClient => (
8380
StatusCode::UNAUTHORIZED,
8481
Json(ClientError::from(ClientErrorCode::UnauthorizedClient)),
8582
)
8683
.into_response(),
8784

88-
// Self::UnsupportedTokenType => (
89-
// StatusCode::BAD_REQUEST,
90-
// Json(ClientError::from(ClientErrorCode::UnsupportedTokenType)),
91-
// )
92-
// .into_response(),
93-
9485
// If the token is unknown, we still return a 200 OK response.
9586
Self::UnknownToken => StatusCode::OK.into_response(),
9687
};

0 commit comments

Comments
 (0)