|
1 | 1 | package org.cloudfoundry.identity.uaa.provider.saml; |
2 | 2 |
|
3 | 3 | import com.ge.iam.sns.service.SnsService; |
| 4 | +import org.cloudfoundry.identity.uaa.provider.IdentityProviderProvisioning; |
4 | 5 | import org.slf4j.Logger; |
5 | 6 | import org.slf4j.LoggerFactory; |
6 | 7 | import org.springframework.beans.factory.annotation.Autowired; |
|
12 | 13 | * Configuration for UAA-to-SNS integration |
13 | 14 | */ |
14 | 15 | @Configuration |
15 | | -@ComponentScan(basePackages = {"com.ge.iam.sns","com.ge.iam.sqs"}) |
| 16 | +@ComponentScan(basePackages = { "com.ge.iam.sns", "com.ge.iam.sqs" }) |
16 | 17 | public class UaaSnsConfig { |
17 | 18 |
|
18 | 19 | private static final Logger logger = LoggerFactory.getLogger(UaaSnsConfig.class); |
19 | 20 |
|
20 | 21 | /** |
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 |
22 | 25 | * |
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 |
24 | 30 | * @return A configured UserAttributeChangesSnsHandler |
25 | 31 | */ |
26 | 32 | @Bean |
27 | 33 | @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); |
31 | 39 | } |
32 | 40 | } |
0 commit comments