mirror of https://github.com/usbharu/Hideout.git
Merge remote-tracking branch 'origin/feature/e2e-test' into feature/e2e-test
This commit is contained in:
commit
2a9fac47b7
|
@ -81,7 +81,6 @@ class InboxJobProcessor(
|
|||
}
|
||||
|
||||
override suspend fun process(param: InboxJobParam) {
|
||||
|
||||
val jsonNode = objectMapper.readTree(param.json)
|
||||
|
||||
logger.info("START Process inbox. type: {}", param.type)
|
||||
|
|
|
@ -63,7 +63,6 @@ import java.security.interfaces.RSAPrivateKey
|
|||
import java.security.interfaces.RSAPublicKey
|
||||
import java.util.*
|
||||
|
||||
|
||||
@EnableWebSecurity(debug = false)
|
||||
@Configuration
|
||||
@Suppress("FunctionMaxLength", "TooManyFunctions")
|
||||
|
@ -285,7 +284,6 @@ data class JwkConfig(
|
|||
val privateKey: String
|
||||
)
|
||||
|
||||
|
||||
@Configuration
|
||||
class PostSecurityConfig(
|
||||
val auth: AuthenticationManagerBuilder,
|
||||
|
|
|
@ -11,23 +11,18 @@ import dev.usbharu.httpsignature.common.HttpMethod
|
|||
import dev.usbharu.httpsignature.common.HttpRequest
|
||||
import java.net.URL
|
||||
|
||||
|
||||
@JsonDeserialize(using = HttpRequestDeserializer::class)
|
||||
@JsonSubTypes
|
||||
abstract class HttpRequestMixIn
|
||||
|
||||
class HttpRequestDeserializer : JsonDeserializer<HttpRequest>() {
|
||||
override fun deserialize(p: JsonParser, ctxt: DeserializationContext?): HttpRequest {
|
||||
|
||||
val readTree: JsonNode = p.codec.readTree(p)
|
||||
|
||||
|
||||
|
||||
return HttpRequest(
|
||||
URL(readTree["url"].textValue()),
|
||||
HttpHeaders(emptyMap()),
|
||||
HttpMethod.valueOf(readTree["method"].textValue())
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue