myndocs/kotlin-oauth2-server

Ktor KtorCallContext respondStatus() doesn't return status to client

MaaxGr opened this issue · 0 comments

Describe the bug
KtorCallContext seems to be not implemented correctly.
respondStatus() only set's a status code, but never sends it to the client, which leeds to a timeout.

This is e.g. problematic in the catch block of CallRouter::routeAuthorizationCodeRedirect

        } catch (unverifiedIdentityException: InvalidIdentityException) {
            callContext.respondStatus(STATUS_UNAUTHORIZED)

            return RedirectRouterResponse(false)
        }