Skip to content
Snippets Groups Projects
Commit 1dcd6dae authored by Sutton's avatar Sutton
Browse files

Adding iappproperties back

parent 86074d0c
No related branches found
No related tags found
1 merge request!60CORS Fix, AWS Updates
Pipeline #28195 failed
...@@ -32,8 +32,8 @@ import javax.inject.Inject; ...@@ -32,8 +32,8 @@ import javax.inject.Inject;
@Component @Component
public class EntitlementsClientFactory extends AbstractFactoryBean<IEntitlementsFactory> { public class EntitlementsClientFactory extends AbstractFactoryBean<IEntitlementsFactory> {
@Value("${AUTHORIZE_API}") @Autowired
public String AUTHORIZE_API; private IAppProperties config;
@Inject @Inject
private HttpResponseBodyMapper httpResponseBodyMapper; private HttpResponseBodyMapper httpResponseBodyMapper;
...@@ -42,7 +42,7 @@ public class EntitlementsClientFactory extends AbstractFactoryBean<IEntitlements ...@@ -42,7 +42,7 @@ public class EntitlementsClientFactory extends AbstractFactoryBean<IEntitlements
protected IEntitlementsFactory createInstance() { protected IEntitlementsFactory createInstance() {
return new EntitlementsFactory(EntitlementsAPIConfig return new EntitlementsFactory(EntitlementsAPIConfig
.builder() .builder()
.rootUrl(AUTHORIZE_API) .rootUrl(config.getAuthorizeAPI())
.build(), httpResponseBodyMapper); .build(), httpResponseBodyMapper);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment