Class STCoreFrameworkConfiguration
java.lang.Object
it.uniroma2.art.semanticturkey.spring.STCoreFrameworkConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@EnableWebSecurity
@EnableMethodSecurity
@ComponentScan({"it.uniroma2.art.semanticturkey.settings","it.uniroma2.art.semanticturkey.config","it.uniroma2.art.semanticturkey.customform","it.uniroma2.art.semanticturkey.customviews","it.uniroma2.art.semanticturkey.extension.extpts","it.uniroma2.art.semanticturkey.security.apikey","it.uniroma2.art.semanticturkey.security.oauth"})
@Import(WebClientConfig.class)
public class STCoreFrameworkConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
A @Configuration class for the core framework.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNeeded for keeping track of active/online usersvoidaddFormatters(org.springframework.format.FormatterRegistry registry) voidaddViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) org.springframework.security.authentication.AuthenticationManagerauthenticationManager(org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder) org.springframework.security.web.SecurityFilterChainauthFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, SemanticTurkeyCoreSettingsManager coreSettingsManager, org.springframework.security.authentication.AuthenticationManager authenticationManager) org.springframework.security.crypto.bcrypt.BCryptPasswordEncoderstatic org.springframework.beans.factory.config.CustomScopeConfigurercustomScopeConfigurer(MultiverseManager multiverseManager) dynamicAuthorizationFilter(SemanticTurkeyCoreSettingsManager coreSettingsManager, STAuthenticationEntryPoint authEntryPoint) extensionPointManager(org.springframework.context.ApplicationContext context) voidinit()org.springframework.security.oauth2.jwt.JwtDecoderjwtDecoder(String audiences) it.uniroma2.art.maple.orchestration.impl.MediationFrameworkImplmediationFramework(org.pf4j.PluginManager pluginManager) static MultiverseManagerpluginManager(org.springframework.context.ApplicationContext context, ExtensionPointManagerImpl exptMgr, org.springframework.beans.factory.ObjectProvider<jakarta.servlet.MultipartConfigElement> multipartConfigElement) org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepositorysemanticTurkeyOAuthAuthenticatorFactory(OAuth2TokenService auth2TokenService) stServiceTracker(org.springframework.context.ApplicationContext applicationContext) org.springframework.scheduling.TaskSchedulerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addInterceptors, addResourceHandlers, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
STCoreFrameworkConfiguration
public STCoreFrameworkConfiguration()
-
-
Method Details
-
init
- Throws:
IOException
-
stServiceTracker
@Bean public STServiceTracker stServiceTracker(org.springframework.context.ApplicationContext applicationContext) -
extensionPointManager
@Bean public ExtensionPointManagerImpl extensionPointManager(org.springframework.context.ApplicationContext context) -
multiverseManager
-
customScopeConfigurer
@Bean public static org.springframework.beans.factory.config.CustomScopeConfigurer customScopeConfigurer(MultiverseManager multiverseManager) -
pluginManager
@Bean @DependsOn("metadataRegistryBackend") public STPluginManager pluginManager(org.springframework.context.ApplicationContext context, ExtensionPointManagerImpl exptMgr, org.springframework.beans.factory.ObjectProvider<jakarta.servlet.MultipartConfigElement> multipartConfigElement) -
mediationFramework
@Bean public it.uniroma2.art.maple.orchestration.impl.MediationFrameworkImpl mediationFramework(org.pf4j.PluginManager pluginManager) throws IOException - Throws:
IOException
-
resourceLocator
-
resourceChangeNotificationManager
-
taskScheduler
@Bean public org.springframework.scheduling.TaskScheduler taskScheduler() -
resourceMetadataManager
-
addViewControllers
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) - Specified by:
addViewControllersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormattersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
stringToResourcePositionConverter
@Bean public StringToResourcePositionConverter stringToResourcePositionConverter(MetadataRegistryBackend mdr) -
stServiceContext
-
accessControlManager
@Bean @DependsOn("semanticTurkeyCoreSettingsManager") public AccessControlManager accessControlManager() -
stAuthorizationEvaluator
-
activeUserStore
Needed for keeping track of active/online users- Returns:
-
cspWhitelistService
-
corsFilter
-
dynamicAuthorizationFilter
@Bean public DynamicAuthorizationFilter dynamicAuthorizationFilter(SemanticTurkeyCoreSettingsManager coreSettingsManager, STAuthenticationEntryPoint authEntryPoint) -
stUserDetailsService
-
authEntryPoint
-
authSuccessHandler
-
authFailHandler
-
accessDeniedHandler
-
logoutSuccessHandler
-
bCryptPasswordEncoder
@Bean public org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder bCryptPasswordEncoder() -
samlAuthenticationSuccessHandler
-
jwtDecoder
@Bean public org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder(@Value("${spring.security.oauth2.resourceserver.jwt.audiences}") String audiences) -
authenticationManager
@Bean public org.springframework.security.authentication.AuthenticationManager authenticationManager(@Autowired(required=false) org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder) -
semanticTurkeyAuthenticator
-
semanticTurkeyUsernamePasswordAuthenticatorFactory
@Bean public SemanticTurkeyUsernamePasswordAuthenticatorFactory semanticTurkeyUsernamePasswordAuthenticatorFactory() -
semanticTurkeyOAuthAuthenticatorFactory
@Bean public SemanticTurkeyOAuthAuthenticatorFactory semanticTurkeyOAuthAuthenticatorFactory(OAuth2TokenService auth2TokenService) -
authFilterChain
@Bean public org.springframework.security.web.SecurityFilterChain authFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, SemanticTurkeyCoreSettingsManager coreSettingsManager, org.springframework.security.authentication.AuthenticationManager authenticationManager) throws Exception - Throws:
Exception
-
relyingPartyRegistrations
@Bean public org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepository relyingPartyRegistrations()
-