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
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    OAuth2SecurityConfiguration(SecurityProperties securityProperties, org.springframework.boot.autoconfigure.security.oauth2.resource.OAuth2ResourceServerProperties oAuth2Properties, org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties managementWebEndpointProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.web.SecurityFilterChain
    filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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

    • initialize

      @PostConstruct public void initialize()
    • filterChain

      @Bean public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Throws:
      Exception