File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
crates/handlers/src/oauth2 Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments