Skip to content

Commit 84f45e4

Browse files
ThomasVitaledadikovi
authored andcommitted
Deprecate OpenID 2.0 Support
Add deprecation notice to all files in the spring-security-openid module Fixes spring-projectsgh-7263
1 parent 339d44b commit 84f45e4

19 files changed

+64
-6
lines changed

openid/spring-security-openid.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// NOTE: The OpenID 1.0 and 2.0 protocols have been deprecated and users are
2+
// <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
3+
// to <a href="https://openid.net/connect/">OpenID Connect</a>.
4+
15
apply plugin: 'io.spring.convention.spring-module'
26

37
dependencies {

openid/src/main/java/org/springframework/security/openid/AuthenticationCancelledException.java

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
/**
2121
* Indicates that OpenID authentication was cancelled
2222
*
23+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
24+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
25+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
2326
* @author Robin Bramley, Opsera Ltd
2427
*/
2528
public class AuthenticationCancelledException extends AuthenticationException {

openid/src/main/java/org/springframework/security/openid/AxFetchListFactory.java

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
* This allows the list of attributes for a fetch request to be tailored for different
2525
* OpenID providers, since they do not all support the same attributes.
2626
*
27+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
28+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
29+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
2730
* @author Luke Taylor
2831
* @since 3.1
2932
*/

openid/src/main/java/org/springframework/security/openid/NullAxFetchListFactory.java

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
import java.util.List;
2020

2121
/**
22+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
23+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
24+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
2225
* @author Luke Taylor
2326
* @since 3.1
2427
*/

openid/src/main/java/org/springframework/security/openid/OpenID4JavaConsumer.java

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
import org.springframework.util.StringUtils;
4242

4343
/**
44+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
45+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
46+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
4447
* @author Ray Krueger
4548
* @author Luke Taylor
4649
*/

openid/src/main/java/org/springframework/security/openid/OpenIDAttribute.java

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
* should be requested during a fetch request, or to hold values for an attribute which
2828
* are returned during the authentication process.
2929
*
30+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
31+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
32+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
3033
* @author Luke Taylor
3134
* @since 3.0
3235
*/

openid/src/main/java/org/springframework/security/openid/OpenIDAuthenticationFilter.java

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
* where it should (normally) be processed by an <tt>OpenIDAuthenticationProvider</tt> in
6060
* order to load the authorities for the user.
6161
*
62+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
63+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
64+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
6265
* @author Robin Bramley
6366
* @author Ray Krueger
6467
* @author Luke Taylor

openid/src/main/java/org/springframework/security/openid/OpenIDAuthenticationProvider.java

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
* {@code Authentication} token, so additional properties such as email addresses,
4545
* telephone numbers etc can easily be stored.
4646
*
47+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
48+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
49+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
4750
* @author Robin Bramley, Opsera Ltd.
4851
* @author Luke Taylor
4952
*/

openid/src/main/java/org/springframework/security/openid/OpenIDAuthenticationStatus.java

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
/**
1919
* Authentication status codes, based on JanRain status codes
2020
*
21+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
22+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
23+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
2124
* @author JanRain Inc.
2225
* @author Robin Bramley, Opsera Ltd
2326
* @author Luke Taylor

openid/src/main/java/org/springframework/security/openid/OpenIDAuthenticationToken.java

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
/**
2727
* OpenID Authentication Token
2828
*
29+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
30+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
31+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
2932
* @author Robin Bramley
3033
*/
3134
public class OpenIDAuthenticationToken extends AbstractAuthenticationToken {

openid/src/main/java/org/springframework/security/openid/OpenIDConsumer.java

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
/**
2121
* An interface for OpenID library implementations
2222
*
23+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
24+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
25+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
2326
* @author Ray Krueger
2427
* @author Robin Bramley, Opsera Ltd
2528
*/

openid/src/main/java/org/springframework/security/openid/OpenIDConsumerException.java

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
/**
1919
* Thrown by an OpenIDConsumer if it cannot process a request
2020
*
21+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
22+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
23+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
2124
* @author Robin Bramley, Opsera Ltd
2225
*/
2326
public class OpenIDConsumerException extends Exception {

openid/src/main/java/org/springframework/security/openid/RegexBasedAxFetchListFactory.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
import java.util.regex.Pattern;
2323

2424
/**
25-
*
25+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
26+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
27+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
2628
* @author Luke Taylor
2729
* @since 3.1
2830
*/
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<html>
22
<body>
3-
Authenticates standard web browser users via <a href="https://openid.net">OpenID</a>.
3+
<p>Authenticates standard web browser users via <a href="https://openid.net">OpenID</a>.</p>
4+
5+
<p>NOTE: The OpenID 1.0 and 2.0 protocols have been deprecated and users are
6+
<a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
7+
to <a href="https://openid.net/connect/">OpenID Connect</a>.</p>
48
</body>
5-
</html>
9+
</html>

openid/src/test/java/org/springframework/security/openid/MockOpenIDConsumer.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
*/
1616
package org.springframework.security.openid;
1717

18-
import org.springframework.security.openid.OpenIDAuthenticationToken;
19-
import org.springframework.security.openid.OpenIDConsumer;
20-
2118
import javax.servlet.http.HttpServletRequest;
2219

2320
/**
21+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
22+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
23+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
2424
* @author Robin Bramley, Opsera Ltd
2525
*/
2626
public class MockOpenIDConsumer implements OpenIDConsumer {

openid/src/test/java/org/springframework/security/openid/OpenID4JavaConsumerTests.java

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
import java.util.*;
4141

4242
/**
43+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
44+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
45+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
4346
* @author Luke Taylor
4447
*/
4548
public class OpenID4JavaConsumerTests {

openid/src/test/java/org/springframework/security/openid/OpenIDAuthenticationFilterTests.java

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
import org.springframework.mock.web.MockHttpServletResponse;
3232
import org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler;
3333

34+
/**
35+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
36+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
37+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
38+
*/
3439
public class OpenIDAuthenticationFilterTests {
3540

3641
OpenIDAuthenticationFilter filter;

openid/src/test/java/org/springframework/security/openid/OpenIDAuthenticationProviderTests.java

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
/**
3636
* Tests {@link OpenIDAuthenticationProvider}
3737
*
38+
* @deprecated The OpenID 1.0 and 2.0 protocols have been deprecated and users are
39+
* <a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
40+
* to <a href="https://openid.net/connect/">OpenID Connect</a>.
3841
* @author Robin Bramley, Opsera Ltd
3942
*/
4043
public class OpenIDAuthenticationProviderTests {

openid/src/test/resources/logback-test.xml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!-- NOTE: The OpenID 1.0 and 2.0 protocols have been deprecated and users are
2+
<a href="https://openid.net/specs/openid-connect-migration-1_0.html">encouraged to migrate</a>
3+
to <a href="https://openid.net/connect/">OpenID Connect</a>. -->
4+
15
<configuration>
26
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
37
<encoder>

0 commit comments

Comments
 (0)