Skip to content

Commit

Permalink
feat(oauth2): enable identity provider by default (#4643)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkelemen authored Sep 20, 2024
1 parent 5d02cd3 commit 8af91b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public FilterRegistrationBean<?> webappAuthenticationFilter() {
}

@Bean
@ConditionalOnProperty(name = "identity-provider.enabled", havingValue = "true", prefix = OAuth2Properties.PREFIX)
@ConditionalOnProperty(name = "identity-provider.enabled", havingValue = "true", prefix = OAuth2Properties.PREFIX, matchIfMissing = true)
public OAuth2IdentityProviderPlugin identityProviderPlugin() {
logger.debug("Registering OAuth2IdentityProviderPlugin");
return new OAuth2IdentityProviderPlugin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public void setPostLogoutRedirectUri(String postLogoutRedirectUri) {

public static class OAuth2IdentityProviderProperties {
/**
* Enable {@link OAuth2IdentityProvider}.
* Enable {@link OAuth2IdentityProvider}. Default {@code true}.
*/
private boolean enabled = false;
private boolean enabled = true;

/**
* Name of the attribute (claim) that holds the groups.
Expand Down

0 comments on commit 8af91b8

Please sign in to comment.