. some of our users are in a corporate environment that default any browser http://localhost to redirect them to
https
for some reason
j
Jan
07/15/2025, 11:43 AM
SSL is supported by Ktor on the JVM, not entirely sure if I can bundle a configuration. Looking into it
Jan
07/15/2025, 5:02 PM
So its possible to implement this for the JVM target, however:
• It obviously can only be a self-signed certificate, so the user has to do the extra step and trust this certificate (2 clicks in the browser, still)
• You can only use the HTTP or HTTPs version as the redirect url, not HTTP and then if the environment forces HTTPs, use HTTPs because random ports are used. So you'd have to always use HTTP or HTTPs (if random ports are used).
I could make it configurable which port to use (so you could configure it to use the default port, which would allow your scenario), though I'm still not entirely sure if it makes sense to package a SSL configuration into the library
k
Kevin
07/15/2025, 6:30 PM
got it thanks for looking into this
Kevin
07/15/2025, 6:30 PM
i think the best alternative for us would be allowing sign in with verification code