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