Skip to content

Commit e2cdef4

Browse files
Tanishka JainTanishka Jain
authored andcommitted
error resolve
1 parent df979d4 commit e2cdef4

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.cloudfoundry.identity.uaa.provider.saml;
22

33
import com.ge.iam.sns.service.SnsService;
4+
import org.cloudfoundry.identity.uaa.provider.IdentityProviderProvisioning;
45
import org.slf4j.Logger;
56
import org.slf4j.LoggerFactory;
67
import org.springframework.beans.factory.annotation.Autowired;
@@ -12,21 +13,28 @@
1213
* Configuration for UAA-to-SNS integration
1314
*/
1415
@Configuration
15-
@ComponentScan(basePackages = {"com.ge.iam.sns","com.ge.iam.sqs"})
16+
@ComponentScan(basePackages = { "com.ge.iam.sns", "com.ge.iam.sqs" })
1617
public class UaaSnsConfig {
1718

1819
private static final Logger logger = LoggerFactory.getLogger(UaaSnsConfig.class);
1920

2021
/**
21-
* Create the UserAttributeChangesSnsHandler bean, injecting the SnsService from iam-k8s-utils
22+
* Create the UserAttributeChangesSnsHandler bean, injecting the SnsService from
23+
* iam-k8s-utils
24+
* and IdentityProviderProvisioning for querying identity provider information
2225
*
23-
* @param snsService The SNS service implementation from iam-k8s-utils
26+
* @param snsService The SNS service implementation from
27+
* iam-k8s-utils
28+
* @param identityProviderProvisioning The identity provider provisioning
29+
* service
2430
* @return A configured UserAttributeChangesSnsHandler
2531
*/
2632
@Bean
2733
@Autowired
28-
public UserAttributeChangesSnsHandler userAttributeChangesSnsHandler(SnsService snsService) {
29-
logger.info("Creating UserAttributeChangesSnsHandler with SNS service");
30-
return new UserAttributeChangesSnsHandler(snsService);
34+
public UserAttributeChangesSnsHandler userAttributeChangesSnsHandler(
35+
SnsService snsService,
36+
IdentityProviderProvisioning identityProviderProvisioning) {
37+
logger.info("Creating UserAttributeChangesSnsHandler with SNS service and IdentityProviderProvisioning");
38+
return new UserAttributeChangesSnsHandler(snsService, identityProviderProvisioning);
3139
}
3240
}

0 commit comments

Comments
 (0)