| Author |  | 
| dreuzel 
 
 
 Joined: 30 Jan 2006
 Posts: 16
 
 
 | 
|  Posted: Mon 25 Mar '13 12:48    Post subject: fcgi authentication |   |  
| 
 |  
| just  switched from mod_PHP   to mod_fcgi   and have the classical authentication problems. I googled  around but there  is  hardly  anything relevant  to find
 
 A)Hystory
 I add  authentiction to  my PHP apps  forcing a DIgest  login (no password over the net)
 as Apache is requesting a USER  or a  login ...  I allow apache to verify  and  do a simple session verification in php
 as Apache  is NOT requesting a USER .....        and the authorisation state is not correct I force a authorisation
 digest with the browser  verify the user  and allow or  disallow.
 
 B) using  Fcgi    this does not seem to work anymore  fcgid  magicaly filter  the  authentication.
 -Using  basic authentication and  " FcgidPassHeader Authorization"  the authentication seems to pass....
 THough it seems not possible to  change the realm and change the  Authentication   making  the primitive implementation not very usefull.
 -Using  Digest authentication I get nothing through.....
 Meaning  Fcgi  is completely useless  and as such unusable
 Does someone Know how to allow for Digest authentication.
 
 C) Do not understand  fcgi   commands
 I was  hoping  for a redirect  to a dedicated php app on following commands
 but I only receive a complaint tat the file is not existing (and it is )
 [code]
 FcgidAuthorizer F:\loggerin.php
 FcgidAuthorizerAuthoritative on
 [code]
 Can someone explain the  command and the intention ?
 As it is it seems a crappy implementation, Can you please convince me  it is well thought out .
 apache  doc  does not offer a clue  how to look at the significance of the setting
 |  | 
| Back to top |  | 
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 |  | 
| Back to top |  | 
| dreuzel 
 
 
 Joined: 30 Jan 2006
 Posts: 16
 
 
 | 
|  Posted: Tue 09 Apr '13 19:31    Post subject: |   |  
| 
 |  
| not realy  apache authn authz    block all access  to the PHP only way i fallback to mod_php
 |  | 
| Back to top |  | 
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Wed 10 Apr '13 10:26    Post subject: |   |  
| 
 |  
| Did you try my complete testing code with the vhost? |  | 
| Back to top |  | 
| dreuzel 
 
 
 Joined: 30 Jan 2006
 Posts: 16
 
 
 | 
|  Posted: Wed 10 Apr '13 11:18    Post subject: |   |  
| 
 |  
| absolutely  and that works correctly. it parses and passes the authorisation  to PHP.
 
 pd: your link fails error  502 bad Gateway nginx
 |  | 
| Back to top |  |