Jump to content

[SOLVED] Digest Authentication in PHP / mod_auth_digest


meldibo

Recommended Posts

Hi all

 

I am new to heliohost and wanted to implement Digest HTTP Authentication in a PHP script, but it appears that the mod_auth_digest Apache Module is not installed.

Is this really the case? Is it possible to get it enabled?

(I am on Johnny)

 

Many thanks and regards,

meldibo

Link to comment
Share on other sites

Guest Geoff

We could install that module for you, but:

 

However, it has not been extensively tested and is therefore marked experimental.

 

Can you find a more stable alternative or not?

Link to comment
Share on other sites

Thanks for tha quick response and for the offer.

 

I was indeed unaware that this module is experimental. Anyway, as I implement the authentication myself anyway, and would have needed the module just so that php fills some variable correctly, i found a workaround.

 

In case anybody needs it:

For beeing able to implement HTTP Digest Authentication in PHP you can use the Rewrite-Engine to assign the HTTP-Auth-String to an enviroment-variable as follows:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>

 

Thanks again geoff and regards,

meldibo

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...