parent
7fd0530009
commit
4a976faea3
|
@ -247,7 +247,7 @@ class ServerJwtDslTests {
|
|||
open class CustomJwtAuthenticationConverterConfig {
|
||||
|
||||
companion object {
|
||||
val CONVERTER: Converter<Jwt, out Mono<AbstractAuthenticationToken>> = Converter { Mono.empty() }
|
||||
val CONVERTER: Converter<Jwt, out Mono<AbstractAuthenticationToken>> = NullConverter()
|
||||
val DECODER: ReactiveJwtDecoder = NullReactiveJwtDecoder()
|
||||
}
|
||||
|
||||
|
@ -269,6 +269,13 @@ class ServerJwtDslTests {
|
|||
open fun jwtDecoder(): ReactiveJwtDecoder = DECODER
|
||||
}
|
||||
|
||||
class NullConverter: Converter<Jwt, Mono<AbstractAuthenticationToken>> {
|
||||
override fun convert(source: Jwt): Mono<AbstractAuthenticationToken>? {
|
||||
return Mono.empty()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@RestController
|
||||
internal class BaseController {
|
||||
@GetMapping
|
||||
|
|
Loading…
Reference in New Issue