Re: [Cppcms-users] Integrated FastCGI module
Brought to you by:
artyom-beilis
From: Sab <rim...@gm...> - 2012-12-20 12:36:32
|
True. Simply adding FCGI_AUTHORIZER in fastcgi_api.cpp line 440) worked out fine. I get the request and can deny it by returning 401. That's cool. BUT! I just can't digest the fact that there is no info about the url in this authorize request message! The CONTENT_LENGTH, PATH_INFO, PATH_TRANSLATED, and SCRIPT_NAME are in fact empty. How stupid is that!?!? You were right: this authorizer feature of FastCGI is absolutely useless without knowing what the user actually tries to access! I think I will just use a responder and implement the authorizer myself before processing the request. I wanted to keep the authorization separated from the processing but that will not work out. Thanks so much for your hints. Sab |