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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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 {

0 commit comments

Comments
 (0)