Commit 9293e9b2 authored by Rostislav Vatolin [SLB]'s avatar Rostislav Vatolin [SLB]
Browse files

Move azure property from core module

parent 23d7280a
......@@ -2,28 +2,16 @@ package org.opengroup.osdu.entitlements.v2.di;
import org.opengroup.osdu.core.common.http.HttpClient;
import org.opengroup.osdu.core.common.http.IHttpClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import javax.inject.Named;
@Configuration
@ComponentScan("org.opengroup.osdu.core.common")
public class LibraryBeanConfiguration {
@Value("${azure.keyvault.url}")
private String keyVaultURL;
@Bean
public IHttpClient getHttpClient() {
return new HttpClient();
}
@Bean
@Named("KEY_VAULT_URL")
public String keyVaultURL() {
return keyVaultURL;
}
}
......@@ -14,9 +14,6 @@ app.domain=${SERVICE_DOMAIN_NAME:example.com}
aws.parameter.prefix=/osdu/${ENVIRONMENT}
# Don't know the purpose yet. Needs to be moved to provider side. Issue submitted in GL
azure.keyvault.url=xx
redishost=${REDIS_CLUSTER_ENDPOINT}
redisport=${REDIS_CLUSTER_PORT}
redis.partition.association=0
......
package org.opengroup.osdu.entitlements.v2.azure.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AzureBootstrapConfig {
@Bean(name="KEY_VAULT_URL")
public String keyVaultURL(@Value("${azure.keyvault.url}") String keyVaultURL) {
return keyVaultURL;
}
}
......@@ -30,6 +30,3 @@ partition.keycloak.realm=TODO
partition.keycloak.client_id=TODO
partition.keycloak.client_secert=TODO
spring.security.oauth2.resourceserver.jwt.jwk-set-uri=TODO
#This variable is mandatory. what is the use of ??
azure.keyvault.url=xyz
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment