Package io.jmix.oidc
Class OidcVaadinWebSecurity
java.lang.Object
com.vaadin.flow.spring.security.VaadinWebSecurity
io.jmix.oidc.OidcVaadinWebSecurity
- Direct Known Subclasses:
OidcAutoConfiguration.DefaulOidcVaadinWebSecurity
public class OidcVaadinWebSecurity
extends com.vaadin.flow.spring.security.VaadinWebSecurity
Provides Vaadin security to the project. Configures authentication using the OAuth 2.0 or OpenID Connect provider.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.security.oauth2.client.registration.ClientRegistrationRepository
protected JmixOidcUserService
protected OidcProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configure
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected void
configure
(org.springframework.security.config.annotation.web.builders.WebSecurity web) Temporary workaround until https://github.com/vaadin/flow/issues/19075 is fixedprotected void
configureJmixSpecifics
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected org.springframework.security.oauth2.client.oidc.web.logout.OidcClientInitiatedLogoutSuccessHandler
void
setClientRegistrationRepository
(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository) void
setJmixOidcUserService
(JmixOidcUserService jmixOidcUserService) void
setOidcProperties
(OidcProperties oidcProperties) Methods inherited from class com.vaadin.flow.spring.security.VaadinWebSecurity
addLogoutHandlers, antMatchers, applyUrlMapping, enableNavigationAccessControl, filterChain, getAuthenticationContext, getDefaultHttpSecurityPermitMatcher, getDefaultHttpSecurityPermitMatcher, getDefaultWebSecurityIgnoreMatcher, getDefaultWebSecurityIgnoreMatcher, getNavigationAccessControl, getViewAccessChecker, routeMatchers, setLoginView, setLoginView, setLoginView, setLoginView, setOAuth2LoginPage, setStatelessAuthentication, setStatelessAuthentication, webSecurityCustomizer
-
Field Details
-
jmixOidcUserService
-
oidcProperties
-
clientRegistrationRepository
protected org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository
-
-
Constructor Details
-
OidcVaadinWebSecurity
public OidcVaadinWebSecurity()
-
-
Method Details
-
setJmixOidcUserService
-
setOidcProperties
-
setClientRegistrationRepository
@Autowired public void setClientRegistrationRepository(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository) -
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configure
in classcom.vaadin.flow.spring.security.VaadinWebSecurity
- Throws:
Exception
-
configureJmixSpecifics
protected void configureJmixSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
oidcLogoutSuccessHandler
protected org.springframework.security.oauth2.client.oidc.web.logout.OidcClientInitiatedLogoutSuccessHandler oidcLogoutSuccessHandler() -
configure
protected void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws Exception Temporary workaround until https://github.com/vaadin/flow/issues/19075 is fixed- Overrides:
configure
in classcom.vaadin.flow.spring.security.VaadinWebSecurity
- Throws:
Exception
-