Add login core and import authentication configuration.
This commit is contained in:
parent
0bfb13e9ab
commit
9b42b9bcfe
6
pom.xml
6
pom.xml
|
@ -30,6 +30,12 @@
|
|||
<classifier>library</classifier>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>eu.dnetlib</groupId>
|
||||
<artifactId>uoa-login-core</artifactId>
|
||||
<version>2.1.1</version>
|
||||
</dependency>
|
||||
|
||||
<!--swagger-->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package eu.dnetlib.irishmonitorservice;
|
||||
|
||||
import eu.dnetlib.authentication.configuration.AuthenticationConfiguration;
|
||||
import eu.dnetlib.irishmonitorservice.configuration.GlobalVars;
|
||||
import eu.dnetlib.irishmonitorservice.configuration.properties.APIProperties;
|
||||
import eu.dnetlib.uoamonitorservice.UoaMonitorServiceConfiguration;
|
||||
|
@ -9,18 +10,17 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
|
|||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.context.annotation.PropertySources;
|
||||
//uoahelptexts
|
||||
|
||||
@SpringBootApplication(scanBasePackages = {"eu.dnetlib.irishmonitorservice"})
|
||||
@PropertySources({
|
||||
@PropertySource("classpath:authorization.properties"),
|
||||
@PropertySource("classpath:admintoolslibrary.properties"),
|
||||
// @PropertySource("classpath:notification.properties"),
|
||||
@PropertySource("classpath:authentication.properties"),
|
||||
@PropertySource("classpath:monitorservice.properties"),
|
||||
@PropertySource("classpath:irishmonitorservice.properties"),
|
||||
@PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true)
|
||||
})
|
||||
@EnableConfigurationProperties({GlobalVars.class, APIProperties.class})
|
||||
@Import({UoaMonitorServiceConfiguration.class})
|
||||
@Import({UoaMonitorServiceConfiguration.class, AuthenticationConfiguration.class})
|
||||
public class IrishMonitorServiceApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(IrishMonitorServiceApplication.class, args);
|
||||
|
|
Loading…
Reference in New Issue