@Configuration @ConditionalOnClass(value=IgiaFhirController.class) @AutoConfigureAfter(value={org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration.class,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration.class}) @EnableConfigurationProperties(value=FhirProperties.class) public class IgiaFhirAutoConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
IgiaFhirAutoConfiguration.ResourceServerConfiguration |
| Constructor and Description |
|---|
IgiaFhirAutoConfiguration(FhirProperties properties,
org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties resourceServerProperties) |
| Modifier and Type | Method and Description |
|---|---|
ca.uhn.fhir.rest.server.interceptor.CorsInterceptor |
corsInterceptor() |
ca.uhn.fhir.rest.server.interceptor.IServerInterceptor |
exceptionHandlingInterceptor() |
ca.uhn.fhir.context.FhirContext |
fhirContext() |
FhirRestfulServerCustomizer |
fhirRestfulServerCustomizer() |
void |
init() |
org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter |
jwtAccessTokenConverter() |
ca.uhn.fhir.rest.server.interceptor.IServerInterceptor |
loggingInterceptor() |
ca.uhn.fhir.rest.server.interceptor.ResponseHighlighterInterceptor |
responseHighlighterInterceptor() |
ScopeBasedAuthorizationInterceptor |
scopeBasedAuthorizationInterceptor(org.springframework.security.oauth2.provider.token.TokenStore tokenStore,
org.springframework.security.oauth2.client.OAuth2RestTemplate oAuth2RestTemplate) |
ca.uhn.fhir.rest.server.interceptor.IServerInterceptor |
stacktraceExceptionHandlingInterceptor() |
org.springframework.security.oauth2.provider.token.TokenStore |
tokenStore(org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter) |
public IgiaFhirAutoConfiguration(FhirProperties properties, org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties resourceServerProperties)
@PostConstruct public void init()
@Bean @ConditionalOnMissingBean public ca.uhn.fhir.context.FhirContext fhirContext()
@Bean @ConditionalOnMissingBean(name="fhirRestfulServerCustomizer") public FhirRestfulServerCustomizer fhirRestfulServerCustomizer()
@Bean @ConditionalOnMissingBean public ca.uhn.fhir.rest.server.interceptor.CorsInterceptor corsInterceptor()
@Bean @ConditionalOnMissingBean public ca.uhn.fhir.rest.server.interceptor.ResponseHighlighterInterceptor responseHighlighterInterceptor()
@Bean
@ConditionalOnMissingBean(name="loggingInterceptor")
@ConditionalOnProperty(value="hapi.fhir.rest.logging.access",
havingValue="true",
matchIfMissing=false)
public ca.uhn.fhir.rest.server.interceptor.IServerInterceptor loggingInterceptor()
@Bean
@ConditionalOnMissingBean(name="stacktraceExceptionHandlingInterceptor")
@ConditionalOnProperty(value="hapi.fhir.rest.exception.stacktrace",
havingValue="true",
matchIfMissing=false)
public ca.uhn.fhir.rest.server.interceptor.IServerInterceptor stacktraceExceptionHandlingInterceptor()
@Bean
@ConditionalOnMissingBean(name="exceptionHandlingInterceptor")
@ConditionalOnProperty(value="hapi.fhir.rest.exception.stacktrace",
havingValue="false",
matchIfMissing=true)
public ca.uhn.fhir.rest.server.interceptor.IServerInterceptor exceptionHandlingInterceptor()
@Bean
@ConditionalOnMissingBean(name="scopeBasedAuthorizationInterceptor")
@ConditionalOnExpression(value="\'${hspc.platform.api.security.mode}\'==\'secured\' || \'${hspc.platform.api.security.mode}\'==\'mock\'")
public ScopeBasedAuthorizationInterceptor scopeBasedAuthorizationInterceptor(org.springframework.security.oauth2.provider.token.TokenStore tokenStore,
org.springframework.security.oauth2.client.OAuth2RestTemplate oAuth2RestTemplate)
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="security.oauth2.resource.jwt.key-uri") public org.springframework.security.oauth2.provider.token.TokenStore tokenStore(org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter)
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="security.oauth2.resource.jwt.key-uri") public org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter()
Copyright © 2019 igia. All rights reserved.