Skip to content

Commit cdb97dd

Browse files
Kehrlannjgrandja
authored andcommitted
Make OAuth2ClientAuthenticationToken @transient
1 parent 33ede06 commit cdb97dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2ClientAuthenticationToken.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.springframework.lang.Nullable;
2222
import org.springframework.security.authentication.AbstractAuthenticationToken;
2323
import org.springframework.security.core.Authentication;
24+
import org.springframework.security.core.Transient;
2425
import org.springframework.security.oauth2.core.ClientAuthenticationMethod;
2526
import org.springframework.security.oauth2.core.Version;
2627
import org.springframework.security.oauth2.server.authorization.client.RegisteredClient;
@@ -37,6 +38,7 @@
3738
* @see RegisteredClient
3839
* @see OAuth2ClientAuthenticationProvider
3940
*/
41+
@Transient
4042
public class OAuth2ClientAuthenticationToken extends AbstractAuthenticationToken {
4143
private static final long serialVersionUID = Version.SERIAL_VERSION_UID;
4244
private final String clientId;

0 commit comments

Comments
 (0)