Skip to content

Commit

Permalink
Fix Saml2AuthenticationExceptionMixin on JDK 17
Browse files Browse the repository at this point in the history
Closes gh-13804
  • Loading branch information
sjohnr committed Sep 12, 2023
1 parent 9b7a110 commit 3feb809
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@
* @see Saml2Jackson2Module
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE,
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.NONE, getterVisibility = JsonAutoDetect.Visibility.NONE,
isGetterVisibility = JsonAutoDetect.Visibility.NONE)
@JsonIgnoreProperties(ignoreUnknown = true, value = { "cause", "stackTrace", "suppressedExceptions" })
class Saml2AuthenticationExceptionMixin {
abstract class Saml2AuthenticationExceptionMixin {

@JsonProperty("error")
abstract Saml2Error getSaml2Error();

@JsonProperty("detailMessage")
abstract String getMessage();

@JsonCreator
Saml2AuthenticationExceptionMixin(@JsonProperty("error") Saml2Error error,
Expand Down

0 comments on commit 3feb809

Please sign in to comment.