https://kotlinlang.org logo
#ktor
Title
# ktor
t

Thiyagu

05/28/2020, 2:10 PM
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

Rémy

05/28/2020, 2:25 PM
Ktor provide an http client ins’t it ? (I’m working actually on Ktor too for micro-services)
c

Cody Engel

05/28/2020, 2:27 PM
☝️ you should be able to call the service as you would with anything else.
t

Thiyagu

05/28/2020, 2:35 PM
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

Cody Engel

05/28/2020, 3:25 PM
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

Thiyagu

05/28/2020, 3:54 PM
Okay. Cool. Thanks for the info. Will check it out
4 Views