Is it possible to use the form auth plugin to acce...
# ktor
m
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
To solve your problem you can implement your own AuthenticationProvider.
1
m
Thanks very much, this is great