Package com.c4_soft.springaddons.security.oauth2.test.webmvc
package com.c4_soft.springaddons.security.oauth2.test.webmvc
-
ClassDescriptionTo be used when testing secured components which are not controllersAuthenticationRequestPostProcessor<T extends org.springframework.security.core.Authentication>Redundant code for
AuthenticationMockMvc request post-processorsAuto-configuresSpringAddonsOidcClientWithLoginBeansas well as what is already configured byAutoConfigureAddonsWebmvcMinimalSecurity.To be used to test services or repositories but not controllers: auto-configuresSpringAddonsOidcProperties,SpringAddonsOidcBeans,AddonsWebmvcTestConfandAuthenticationFactoriesTestConfAuto-configuresSpringAddonsOidcResourceServerBeansas well as what is already configured byAutoConfigureAddonsWebmvcMinimalSecurity.MockAuthenticationRequestPostProcessor<T extends org.springframework.security.core.Authentication>Just another wrapper for SpringMockMvc.
It would extendMockMvcif it was not final :-/Not visible in springframework (and method not static)Used to wrap the SecurityContextRepository to provide support for testing in stateless modeHelper class for servlet@Controllerunit-tests using security flow API (useless if using annotations).
Might be used either as a parent class (easier) or collaborator (requires some test configuration).