Skip to content

Commit 0a1e4d2

Browse files
committed
change OAuth2AuthorizationRequestException from private inner class to public
1 parent fe71744 commit 0a1e4d2

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright 2002-2024 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.security.oauth2.client.web;
18+
19+
import org.springframework.security.core.AuthenticationException;
20+
21+
/**
22+
* Thrown when the request fails to redirect to the Authorization Server's Authorization
23+
* Endpoint.
24+
*
25+
* @since 6.3
26+
*/
27+
public class OAuth2AuthorizationRequestException extends AuthenticationException {
28+
29+
OAuth2AuthorizationRequestException(Throwable cause) {
30+
super(cause.getMessage(), cause);
31+
}
32+
33+
}

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/OAuth2AuthorizationRequestRedirectFilter.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,4 @@ protected void initExtractorMap() {
269269

270270
}
271271

272-
private static final class OAuth2AuthorizationRequestException extends AuthenticationException {
273-
274-
OAuth2AuthorizationRequestException(Throwable cause) {
275-
super(cause.getMessage(), cause);
276-
}
277-
278-
}
279-
280272
}

0 commit comments

Comments
 (0)