Class OAuth2SecurityConfiguration
java.lang.Object
org.ehrbase.application.config.security.OAuth2SecurityConfiguration
@Configuration
@EnableWebSecurity
@ConditionalOnProperty(prefix="security",
name="auth-type",
havingValue="oauth")
public class OAuth2SecurityConfiguration
extends Object
Configuration for OAuth2 authentication.- Since:
- 1.0.0
- Author:
- Jake Smolka
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2SecurityConfiguration(SecurityProperties securityProperties, org.springframework.boot.autoconfigure.security.oauth2.resource.OAuth2ResourceServerProperties oAuth2Properties, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties managementWebEndpointProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.SecurityFilterChainfilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) void
-
Field Details
-
ADMIN_ONLY
- See Also:
-
PROFILE_SCOPE
- See Also:
-
-
Constructor Details
-
OAuth2SecurityConfiguration
public OAuth2SecurityConfiguration(SecurityProperties securityProperties, org.springframework.boot.autoconfigure.security.oauth2.resource.OAuth2ResourceServerProperties oAuth2Properties, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties managementWebEndpointProperties)
-
-
Method Details