kotlin-multiplatform-oidc icon indicating copy to clipboard operation
kotlin-multiplatform-oidc copied to clipboard

JVM Desktop: redirectPath is hardcoded to /redirect

Open realdadfish opened this issue 1 year ago • 1 comments
trafficstars

The redirect path is hardcoded to be /redirect in https://github.com/kalinjul/kotlin-multiplatform-oidc/blob/main/oidc-appsupport/src/jvmMain/kotlin/org/publicvalue/multiplatform/oidc/appsupport/webserver/Webserver.kt#L20, so regardless of what path (/ or anything else) one specifies, unless it's /redirect, the auth parameters are not grabbed from the incoming request.

realdadfish avatar Jul 26 '24 07:07 realdadfish

Also, I figured that my browser (macOS, Chrome) shows me a 406 Not Acceptable when the redirect is requested, not the 200 OK that the code actually uses. I don't know where this stems from. I could however imagine that one renders a simple "Success, return to your application" page and eventually has a small JS timer to call window.close().

realdadfish avatar Jul 26 '24 08:07 realdadfish

Thanks for your fix which is merged in 0.10.1 :)

kalinjul avatar Aug 22 '24 20:08 kalinjul