ktor icon indicating copy to clipboard operation
ktor copied to clipboard

More control to response headers

Open DonKeyHot1 opened this issue 4 years ago • 3 comments

Subsystem Server. Authentication feature.

Is your feature request related to a problem? Please describe. I'm implementing basic authentication. When wrong username/password pair is send to the server, server responds with code 401 and WWW-Authenticate header. The problem is that in chromium-based browsers it leads to native username/password prompt appear. This is also described here

Describe the solution you'd like I'd like to intercept authentication AFTER all AuthenticationPipeline.RequestAuthentication interceptions is finished. Inside that interceptions i'd like remove headers. (Now I'm only allowed to add headers)

Motivation to include to ktor This feature will give more control to all possible flows including authentication flow

DonKeyHot1 avatar Nov 10 '19 05:11 DonKeyHot1

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

oleg-larshin avatar Aug 10 '20 15:08 oleg-larshin

Hello, What is the status of this issue? Is it related with changes in https://github.com/ktorio/ktor/commit/a9e4f12bdf071c28ca8c7b7648103be8b6817081 ?

When it will be released and ready to use?

Regards

PatrykKleczkowski avatar Feb 10 '22 12:02 PatrykKleczkowski

Any update on this, please?

pklimai avatar Aug 17 '22 11:08 pklimai