suggestion: export TIdHTTPServer in TTMSFNCCustomWebPushServer

Hi,

I running into this issue: I want to authorize requests on the server by a JWT.

I can do this by validating the JWT in the OnHTTPRequest of the TTMSFNCWebPushServer.

However: the underlying Indyserver only seems to accept basic authentication, so as soon as I have a 'Authorization: Bearer' Indy already fails before I can do anything.

Exposing the TIdHTTPServer would allow me to skip this validation in Indy.

Thanks

Hi,

Currently there is indeed no way to access the underlying server. We'll check how we can best expose access to either the server or the necessary event and get back to you as soon as time allows.

Hi,

In the webserver I added a public readonly property that returns the FServer (of type TidHTTPServer) :-)

The idea itself is not bad and it's the first thing that comes to mind. However, we'd like to keep the options open if in the future we move to a different underlying server. We want to make sure we introduce as little breaking changes as possible, and a public property that assumes the dependency is unfortunately a potential breaking change.

Replacing Indy with Sparkle would be a great idea :slight_smile:

Then I could just do JWT validation (out-of-the-box)