Import IgnoreSecurityConfiguration instead of AuthorizationConfiguration and update authorization-library.

This commit is contained in:
Konstantinos Triantafyllou 2023-12-14 15:36:35 +02:00
parent cd59cc9ccc
commit 0a575fbcd2
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
<dependency> <dependency>
<groupId>eu.dnetlib</groupId> <groupId>eu.dnetlib</groupId>
<artifactId>uoa-authorization-library</artifactId> <artifactId>uoa-authorization-library</artifactId>
<version>2.1.3</version> <version>2.1.4</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -3,7 +3,7 @@ package eu.dnetlib.uoaadmintoolslibrary;
import eu.dnetlib.uoaadmintoolslibrary.configuration.GlobalVars; import eu.dnetlib.uoaadmintoolslibrary.configuration.GlobalVars;
import eu.dnetlib.uoaadmintoolslibrary.configuration.properties.GoogleConfig; import eu.dnetlib.uoaadmintoolslibrary.configuration.properties.GoogleConfig;
import eu.dnetlib.uoaadmintoolslibrary.configuration.properties.MailConfig; import eu.dnetlib.uoaadmintoolslibrary.configuration.properties.MailConfig;
import eu.dnetlib.uoaauthorizationlibrary.configuration.AuthorizationConfiguration; import eu.dnetlib.uoaauthorizationlibrary.configuration.IgnoreSecurityConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -12,5 +12,5 @@ import org.springframework.context.annotation.Import;
@Configuration @Configuration
@EnableConfigurationProperties({MailConfig.class, GoogleConfig.class, GlobalVars.class}) @EnableConfigurationProperties({MailConfig.class, GoogleConfig.class, GlobalVars.class})
@ComponentScan(basePackages = { "eu.dnetlib.uoaadmintoolslibrary" }) @ComponentScan(basePackages = { "eu.dnetlib.uoaadmintoolslibrary" })
@Import(AuthorizationConfiguration.class) @Import({IgnoreSecurityConfiguration.class})
public class UoaAdminToolsLibraryConfiguration {} public class UoaAdminToolsLibraryConfiguration {}