Add login core and import authentication configuration.

This commit is contained in:
Konstantinos Triantafyllou 2023-12-14 16:18:52 +02:00
parent 0bfb13e9ab
commit 9b42b9bcfe
2 changed files with 17 additions and 11 deletions

View File

@ -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>

View File

@ -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);