I am trying to create a rewrite rule that proxies a user to a site that requires basic auth, and provides the username & password which logs them in.
Here is the rule I attempted:
RewriteRule ^/invoke(.*) http://username:password@mysite:7000/invoke$1
ProxyPassReverse /invoke/ http://username:password@mysite:7000/invoke/
The rule does successfully pass you on to the proper site, but the user is still prompted for the username and password. If you provide the user and password you do get the page successfully, but I don't want the user to be prompted.
If I post the username and passworld at mysite directly:
I am logged in appropriately without being prompted, but for some reason I cannot get this to work with a rewriterule!