Skip to content

Commit 1d32fff

Browse files
committed
Make OAuth2Error Serializable
Fixes gh-4944
1 parent 4d310b7 commit 1d32fff

File tree

1 file changed

+5
-1
lines changed
  • oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core

1 file changed

+5
-1
lines changed

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2Error.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
*/
1616
package org.springframework.security.oauth2.core;
1717

18+
import org.springframework.security.core.SpringSecurityCoreVersion;
1819
import org.springframework.util.Assert;
1920

21+
import java.io.Serializable;
22+
2023
/**
2124
* A representation of an <i>OAuth 2.0 Error</i>.
2225
*
@@ -30,7 +33,8 @@
3033
* @since 5.0
3134
* @see <a target="_blank" href="https://tools.ietf.org/html/rfc6749#section-11.4">Section 11.4 OAuth Extensions Error Registry</a>
3235
*/
33-
public final class OAuth2Error {
36+
public final class OAuth2Error implements Serializable {
37+
private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;
3438
private final String errorCode;
3539
private final String description;
3640
private final String uri;

0 commit comments

Comments
 (0)