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

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.security.oauth2.client.registration.ClientRegistrationRepository
     
     
    protected OidcProperties
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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 fixed
    protected 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
     
    void
     

    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

    Methods inherited from class java.lang.Object

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

    • jmixOidcUserService

      protected JmixOidcUserService jmixOidcUserService
    • oidcProperties

      protected OidcProperties oidcProperties
    • clientRegistrationRepository

      protected org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository
  • Constructor Details

    • OidcVaadinWebSecurity

      public OidcVaadinWebSecurity()
  • Method Details

    • setJmixOidcUserService

      @Autowired public void setJmixOidcUserService(JmixOidcUserService jmixOidcUserService)
    • setOidcProperties

      @Autowired public void setOidcProperties(OidcProperties oidcProperties)
    • 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 class com.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 class com.vaadin.flow.spring.security.VaadinWebSecurity
      Throws:
      Exception