Hi Kevin
I don't imagine you would have to override the HttpConnection class on the server. For myself I simply used regular cookies that also went with my web-app - if they were logged into the website, they had a cookie with the session ID. In my remoting API I would check the cookie and verify that they had a valid session before allowing them to make calls that require authentication. If your entire API needs authentication, you could also check that before you call `HttpConnection.handleRequest(ctx)`, and then not worry about it in your connection.
Remoting connections are standard HttpRequests, so you can pass information (such as user/password, or key info) via either GET, POST or COOKIE. If you want to integrate this into the remoting call, cookies are sent automatically, or you could extend `haxe.remoting.HttpAsyncConnection` and override the `
call` method to send a custom GET or POST parameter, which you can process on the server. You could even use custom HTTP headers or
built in Http authentication if you wanted.
That would allow you to send some data from the client to the server, and use it to authenticate on your server before doing a remoting call. The next question is how to do private/public keys. I'm not sure what the best approach is here, because I stuck with a more traditional user/pass/session model. I guess in that model a SessionID really is like a temporary key in some ways. I would be interested to hear what you decide on though!