|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright 2020-2022 the original author or authors.
|
|
|
+ * Copyright 2020-2024 the original author or authors.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
@@ -40,6 +40,7 @@ import org.springframework.security.oauth2.server.authorization.settings.OAuth2T
|
|
|
* <li>{@link DurationMixin}</li>
|
|
|
* <li>{@link JwsAlgorithmMixin}</li>
|
|
|
* <li>{@link OAuth2TokenFormatMixin}</li>
|
|
|
+ * <li>{@link StringArrayMixin}</li>
|
|
|
* </ul>
|
|
|
*
|
|
|
* If not already enabled, default typing will be automatically enabled as type info is
|
|
@@ -63,6 +64,7 @@ import org.springframework.security.oauth2.server.authorization.settings.OAuth2T
|
|
|
* @see DurationMixin
|
|
|
* @see JwsAlgorithmMixin
|
|
|
* @see OAuth2TokenFormatMixin
|
|
|
+ * @see StringArrayMixin
|
|
|
*/
|
|
|
public class OAuth2AuthorizationServerJackson2Module extends SimpleModule {
|
|
|
|
|
@@ -82,6 +84,7 @@ public class OAuth2AuthorizationServerJackson2Module extends SimpleModule {
|
|
|
context.setMixInAnnotations(SignatureAlgorithm.class, JwsAlgorithmMixin.class);
|
|
|
context.setMixInAnnotations(MacAlgorithm.class, JwsAlgorithmMixin.class);
|
|
|
context.setMixInAnnotations(OAuth2TokenFormat.class, OAuth2TokenFormatMixin.class);
|
|
|
+ context.setMixInAnnotations(String[].class, StringArrayMixin.class);
|
|
|
}
|
|
|
|
|
|
}
|