All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.c4_soft.springaddons.security.oauth2.test.webmvc.AutoConfigureAddonsWebmvcMinimalSecurity Maven / Gradle / Ivy

The newest version!
package com.c4_soft.springaddons.security.oauth2.test.webmvc;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.TestInstance.Lifecycle;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import com.c4_soft.springaddons.security.oauth2.test.AuthenticationFactoriesTestConf;
import com.c4_soft.springaddons.security.oauth2.test.webflux.AutoConfigureAddonsWebfluxClientSecurity;
import com.c4_soft.springaddons.security.oidc.starter.properties.SpringAddonsOidcProperties;
import com.c4_soft.springaddons.security.oidc.starter.reactive.ReactiveSpringAddonsOidcBeans;
import com.c4_soft.springaddons.security.oidc.starter.synchronised.SpringAddonsOidcBeans;

/**
 * 

* To be used to test services or repositories but not controllers: auto-configures {@link SpringAddonsOidcProperties}, {@link SpringAddonsOidcBeans}, * {@link AddonsWebmvcTestConf} and {@link AuthenticationFactoriesTestConf} *

* See {@link AddonsWebmvcComponentTest} See {@link AutoConfigureAddonsWebmvcResourceServerSecurity} See {@link AutoConfigureAddonsWebfluxClientSecurity} * * @author Jérôme Wacongne <ch4mp#64;c4-soft.com> * @see AddonsWebmvcComponentTest * @see AutoConfigureAddonsWebfluxClientSecurity * @see AutoConfigureAddonsWebmvcResourceServerSecurity */ @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @ImportAutoConfiguration(classes = { AddonsWebmvcTestConf.class, SpringAddonsOidcBeans.class }, exclude = { ReactiveSpringAddonsOidcBeans.class }) @ExtendWith(SpringExtension.class) @TestInstance(Lifecycle.PER_CLASS) public @interface AutoConfigureAddonsWebmvcMinimalSecurity { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy