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

Muhammad Talha

05/10/2022, 3:38 AM
Is it possible to use the form auth plugin to accept json data instead of form data? If not, is there another plugin to do so?
I cant seem to find a way to do this. Now thinking that I can instead create a plugin which transforms the json body into a url form encoded one. But I can't find out how to modify the content type header.
Or if I could simply do an internal redirect, but I can't seem to do that also
a

Aleksei Tirman [JB]

05/10/2022, 8:26 AM
To solve your problem you can implement your own AuthenticationProvider.
1
m

Muhammad Talha

05/11/2022, 3:19 AM
Thanks very much, this is great
3 Views