Skip to content

Commit 74dc3fd

Browse files
author
Steve Riesenberg
committed
Merge branch '6.0.x' into 6.1.x
Closes gh-13799 in 6.1.x Closes gh-13801
2 parents b80a1de + 771d9cd commit 74dc3fd

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

buildSrc/src/main/groovy/io/spring/gradle/convention/JacocoPlugin.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class JacocoPlugin implements Plugin<Project> {
3434
project.tasks.check.dependsOn project.tasks.jacocoTestReport
3535

3636
project.jacoco {
37-
toolVersion = '0.8.7'
37+
toolVersion = '0.8.9'
3838
}
3939
}
4040
}

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/jackson2/OAuth2AuthenticationExceptionMixin.java

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,16 +30,23 @@
3030
* {@link OAuth2AuthenticationException}.
3131
*
3232
* @author Dennis Neufeld
33+
* @author Steve Riesenberg
3334
* @since 5.3.4
3435
* @see OAuth2AuthenticationException
3536
* @see OAuth2ClientJackson2Module
3637
*/
3738
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
38-
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE,
39+
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.NONE, getterVisibility = JsonAutoDetect.Visibility.NONE,
3940
isGetterVisibility = JsonAutoDetect.Visibility.NONE)
4041
@JsonIgnoreProperties(ignoreUnknown = true, value = { "cause", "stackTrace", "suppressedExceptions" })
4142
abstract class OAuth2AuthenticationExceptionMixin {
4243

44+
@JsonProperty("error")
45+
abstract OAuth2Error getError();
46+
47+
@JsonProperty("detailMessage")
48+
abstract String getMessage();
49+
4350
@JsonCreator
4451
OAuth2AuthenticationExceptionMixin(@JsonProperty("error") OAuth2Error error,
4552
@JsonProperty("detailMessage") String message) {

0 commit comments

Comments
 (0)