forked from dhis2/dhis2-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: try to fix unstable spring dependency wiring problem (dhis2#6058)
* Add ifTest check in OIDC condition (config enabler) this was starting the DefaultDhisConfigurationProvider in the integrations tests Signed-off-by: Morten Svanaes <[email protected]>
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,11 +36,15 @@ | |
/** | ||
* @author Morten Svanæs <[email protected]> | ||
*/ | ||
public class OidcDisabledCondition extends PropertiesAwareConfigurationCondition | ||
public class OidcEnabledCondition extends PropertiesAwareConfigurationCondition | ||
{ | ||
@Override | ||
public boolean matches( ConditionContext context, AnnotatedTypeMetadata metadata ) | ||
{ | ||
if ( isTestRun( context ) ) | ||
{ | ||
return false; | ||
} | ||
String isEnabled = getConfiguration().getProperty( ConfigurationKey.OIDC_OAUTH2_LOGIN_ENABLED ); | ||
return isEnabled.equalsIgnoreCase( "on" ); | ||
} | ||
|
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