-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Couple minor configuration tweaks to add Spring Boot 2.2 support
* work around configuration processor issue spring-projects/spring-boot#17035 * Adjust AutoConfig tests to apply EnvironmentPostProcessor when context is loaded.
- Loading branch information
Showing
4 changed files
with
92 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,12 @@ public final class OktaOAuth2Properties implements Validator { | |
*/ | ||
private String groupsClaim = "groups"; | ||
|
||
// work around for https://github.com/spring-projects/spring-boot/issues/17035 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bdemers
Author
Contributor
|
||
private OktaOAuth2Properties() { | ||
this(null); | ||
} | ||
|
||
@Autowired | ||
public OktaOAuth2Properties(@Autowired(required = false) OAuth2ClientProperties clientProperties) { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
this.clientProperties = clientProperties; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How about adding the following instead?
(and removing the constructors)
Is the constructor that take the properties bean public API? If it is you could move it to a
@Bean
explicit definition instead and move the@ConfigurationProperties
declaration there.