[Trunk | Authorization Library]:

1. AuthorizationService.java: [Bug fix] In method "curator()", "CURATOR" is a prefix, not suffix in role.
2. AuthorizationConfiguration.java: Comment "@PropertySources" as this is a library project and properties are set by parent project.
This commit is contained in:
Konstantina Galouni 2020-11-20 16:00:56 +00:00
parent d01da64406
commit bc395ac998
2 changed files with 5 additions and 5 deletions

View File

@ -4,10 +4,10 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.*;
@Configuration
@PropertySources({
@PropertySource("classpath:authorization.properties"),
@PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true)
})
//@PropertySources({
// @PropertySource("classpath:authorization.properties"),
// @PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true)
//})
@EnableConfigurationProperties({SecurityConfig.class})
@ComponentScan(basePackages = { "eu.dnetlib.uoaauthorizationlibrary" })
public class AuthorizationConfiguration { }

View File

@ -30,7 +30,7 @@ public class AuthorizationService {
*
* */
public String curator(String type) {
return mapType(type).toUpperCase() + "_CURATOR";
return "CURATOR_"+mapType(type).toUpperCase();
}
/**