From 1b5c5b84f2dce5f72f82fb9a258ffbd2ed30f451 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 30 Jun 2023 12:17:25 +0300 Subject: [PATCH] Add new properties file for swagger --- pom.xml | 2 +- .../java/eu/dnetlib/loginservice/LoginServiceApplication.java | 1 + src/main/resources/login-service.properties | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/login-service.properties diff --git a/pom.xml b/pom.xml index 4976153..550caa1 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ eu.dnetlib uoa-login-core - 2.0.0 + 2.0.1 diff --git a/src/main/java/eu/dnetlib/loginservice/LoginServiceApplication.java b/src/main/java/eu/dnetlib/loginservice/LoginServiceApplication.java index 7df2f6e..2e9e2a5 100644 --- a/src/main/java/eu/dnetlib/loginservice/LoginServiceApplication.java +++ b/src/main/java/eu/dnetlib/loginservice/LoginServiceApplication.java @@ -10,6 +10,7 @@ import org.springframework.context.annotation.PropertySources; @SpringBootApplication(scanBasePackages = {"eu.dnetlib.loginservice"}) @PropertySources({ @PropertySource("classpath:authentication.properties"), + @PropertySource("classpath:login-service.properties"), @PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true) }) @Import({AuthenticationConfiguration.class}) diff --git a/src/main/resources/login-service.properties b/src/main/resources/login-service.properties new file mode 100644 index 0000000..b899e3d --- /dev/null +++ b/src/main/resources/login-service.properties @@ -0,0 +1,4 @@ +## API Documentation Properties +api.title = Login Service +api.description = Login service provides methods to authenticate users through AAI provider and retrieve information of authenticated user. +api.version = ${project.version}