Does ktor come with a mechanism for properly building
application/x-www-form-urlencoded
strings from a map?
✅ 1
📝 1
o
orangy
08/02/2018, 10:15 PM
Is this for connecting to other services or some other purpose?
b
bdawg.io
08/02/2018, 10:21 PM
I’m trying to output a OAuth 2.0 Authorization Error Response. Something along the lines of
Copy code
call.respond(401, mapOf(
"error" to "invalid_request",
"error_description" to "client_id is missing"
).toFormUrlEncoded())
o
orangy
08/02/2018, 10:25 PM
Hmm, aren’t you using oauth authentication feature?
b
bdawg.io
08/02/2018, 10:26 PM
I’m using Ktor to make an OAuth server. The documentation on the OAuth authentication feature suggests that it is for OAuth clients?
o
orangy
08/02/2018, 10:32 PM
Ah, I see.
orangy
08/02/2018, 10:32 PM
Will you contribute it back as a feature? 😄
b
bdawg.io
08/02/2018, 10:51 PM
I’ll see what I can figure out haha. This is my first ever ktor app besides “hello world”, so I’m still getting my hands wet as it is haha
o
orangy
08/02/2018, 11:11 PM
That’s fine! Having an OAuth server is a nice demo for a technology. I’m not yet sure how it fits into ktor features, but overall I think it’s a great thing to have