no.nav.security.token.support.spring.test.EnableMockOAuth2Server.kt Maven / Gradle / Ivy
package no.nav.security.token.support.spring.test
import java.lang.annotation.Inherited
import org.springframework.boot.test.autoconfigure.properties.PropertyMapping
import org.springframework.context.annotation.Import
import kotlin.annotation.AnnotationRetention.RUNTIME
import kotlin.annotation.AnnotationTarget.CLASS
@MustBeDocumented
@Inherited
@Retention(RUNTIME)
@Target(CLASS)
@Import(MockOAuth2ServerAutoConfiguration::class, MockLoginController::class)
@PropertyMapping(MockOAuth2ServerProperties.PREFIX)
annotation class EnableMockOAuth2Server(
/**
* Specify port for server to run on (only works in test scope), provide via
* env property mock-ouath2-server.port outside of test scope
*/
val port : Int = 0)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy