I was working on migrating to Ktor and in our micr...
# ktor
t
I was working on migrating to Ktor and in our microservices I need to call external rest webservice to validate my Jwt token. Any idea about how to achieve this with Ktor??
👍 1
r
Ktor provide an http client ins’t it ? (I’m working actually on Ktor too for micro-services)
c
☝️ you should be able to call the service as you would with anything else.
t
Ah.. may be I should be bit more clearer on my question. It's not about http client.. can I use Jwt auth provided by Ktor or should I use my custom feature?
c
If you have a separate service to validate JWTs then I think you'd want to make the service request with it. The JWT library seems like it's for authorizing requests using PKI
👍 1
t
Okay. Cool. Thanks for the info. Will check it out