Package io.jmix.autoconfigure.oidc
Class OidcAutoConfiguration.OAuth2ResourceServerConfiguration
java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
io.jmix.autoconfigure.oidc.OidcAutoConfiguration.OAuth2ResourceServerConfiguration
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,
,org.springframework.security.config.annotation.web.builders.WebSecurity> org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
- Enclosing class:
- OidcAutoConfiguration
@EnableWebSecurity
@Order(190)
@ConditionalOnProperty(value="jmix.oidc.use-default-jwt-configuration",
havingValue="true",
matchIfMissing=true)
public static class OidcAutoConfiguration.OAuth2ResourceServerConfiguration
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Configures API endpoints (REST, GraphQL, etc.) protection. Invocations to these resources require a bearer token
in the request header.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configure
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) jmixJwtAuthenticationConverter
(OidcUserMapper oidcUserMapper, OidcProperties oidcProperties) Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
Field Details
-
oidcUserMapper
-
oidcProperties
-
-
Constructor Details
-
OAuth2ResourceServerConfiguration
public OAuth2ResourceServerConfiguration()
-
-
Method Details
-
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
Exception
-
jmixJwtAuthenticationConverter
@Bean @ConditionalOnMissingBean(JmixJwtAuthenticationConverter.class) public JmixJwtAuthenticationConverter jmixJwtAuthenticationConverter(OidcUserMapper oidcUserMapper, OidcProperties oidcProperties)
-