Skip to content

Commit

Permalink
awspringgh-1246: fix comments & remove unnecessary exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
Forfend committed Dec 9, 2024
1 parent 17610e0 commit 572565f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 27 deletions.
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
<module>spring-cloud-aws-test</module>
<module>spring-cloud-aws-modulith</module>
<module>docs</module>
<module>spring-cloud-aws-samples/spring-cloud-aws-cognito-sample</module>
</modules>

<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package io.awspring.cloud.autoconfigure.cognito;

import io.awspring.cloud.autoconfigure.AwsSyncClientCustomizer;
import io.awspring.cloud.autoconfigure.core.AwsAutoConfiguration;
import io.awspring.cloud.autoconfigure.core.AwsClientBuilderConfigurer;
import io.awspring.cloud.autoconfigure.core.AwsConnectionDetails;
import io.awspring.cloud.autoconfigure.core.CredentialsProviderAutoConfiguration;
Expand All @@ -42,8 +41,7 @@
@AutoConfiguration
@EnableConfigurationProperties(CognitoProperties.class)
@ConditionalOnClass({ CognitoIdentityProviderClient.class })
@AutoConfigureAfter({ CredentialsProviderAutoConfiguration.class, RegionProviderAutoConfiguration.class,
AwsAutoConfiguration.class })
@AutoConfigureAfter({ CredentialsProviderAutoConfiguration.class, RegionProviderAutoConfiguration.class })
@ConditionalOnProperty(name = "spring.cloud.aws.cognito.enabled", havingValue = "true", matchIfMissing = true)
public class CognitoAutoConfiguration {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public class CognitoProperties extends AwsClientProperties {
*/
public static final String CONFIG_PREFIX = "spring.cloud.aws.cognito";

/**
* Enables Cognito integration.
*/
private boolean enabled = true;

/**
* The user pool ID.
*/
Expand All @@ -53,14 +48,6 @@ public class CognitoProperties extends AwsClientProperties {
*/
private String clientSecret;

public boolean isEnabled() {
return enabled;
}

public void setEnabled(boolean enabled) {
this.enabled = enabled;
}

public String getUserPoolId() {
return userPoolId;
}
Expand Down
10 changes: 0 additions & 10 deletions spring-cloud-aws-cognito/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>cognitoidentityprovider</artifactId>
<exclusions>
<exclusion>
<groupId>software.amazon.awssdk</groupId>
<artifactId>netty-nio-client</artifactId>
</exclusion>
<exclusion>
<groupId>software.amazon.awssdk</groupId>
<artifactId>apache-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
Expand Down
1 change: 1 addition & 0 deletions spring-cloud-aws-samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<module>spring-cloud-aws-ses-sample</module>
<module>spring-cloud-aws-sns-sample</module>
<module>spring-cloud-aws-sqs-sample</module>
<module>spring-cloud-aws-cognito-sample</module>
</modules>

<properties>
Expand Down

0 comments on commit 572565f

Please sign in to comment.