Rohde Fischer
08/08/2024, 7:35 PMval jwkService = FakeJwk.withGeneratedCertificates(JWTAlgorith.RS256)
testApplication {
externalServices {
hosts("<https://my-auth-service>") {
install(io.ktor.server.plugins.test.fakeJwk) {
service = jwkService
}
}
}
val client = createClient {
install(Auth) {
bearer {
jwtService.authentication {
// Configuration such as ID, expiry etc. here
}
}
}
}
// perform test with client here
}
does something along these lines already exist, what is the current practice, is that actually not testing things with JWK(-ish) systems, or?Aleksei Tirman [JB]
08/09/2024, 7:39 AMRohde Fischer
08/09/2024, 7:41 AM