# Asset Host Authentication

**URL:** <https://www.ruby-forum.com/t/asset-host-authentication/145587>\
**Category:** Rails\
**Created:** [August 11, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/asset-host-authentication/145587 "2008-08-11T20:27:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iplat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@iplat](https://www.ruby-forum.com/u/iplat)\
**Post date:** [August 11, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/asset-host-authentication/145587/1 "2008-08-11T20:27:50Z")

</div>

I’m having a problem using assets generated by actions that require  
authentication. For each asset server i must authenticate with the  
server. Is there a way to automate the authentication process? Or even  
authenticate for each asset host at the same time as the initial  
login.

Thanks,  
joe

---

<div class="post-metadata">

**Author:** ![iplat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@iplat](https://www.ruby-forum.com/u/iplat)\
**Post date:** [August 13, 2008, 4:58pm UTC](https://www.ruby-forum.com/t/asset-host-authentication/145587/2 "2008-08-13T16:58:05Z")

</div>

Any thoughts?

---

<div class="post-metadata">

**Author:** ![iplat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@iplat](https://www.ruby-forum.com/u/iplat)\
**Post date:** [August 13, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/asset-host-authentication/145587/3 "2008-08-13T19:25:20Z")

</div>

Hi Joe,

> I’m having a problem using assets generated by actions that require  
> authentication. For each asset server i must authenticate with the  
> server. Is there a way to automate the authentication process? Or even  
> authenticate for each asset host at the same time as the initial  
> login.

If you’re talking HTTP authentication, then there isn’t a way around  
that. Each server is uniquely keyed and requires separate  
authentication. You’ll need some sort of session-based authentication  
instead.

–  
Roderick van Domburg

> **[De domeinnaam Nedforce.nl is te koop.](http://www.nedforce.nl)**
>
> Deze mooie domeinnaam kan al over een paar minuten van jou zijn. Betalen gaat eenvoudig en vertrouwd via iDEAL. Direct na de betaling ontvang je de verhuiscode per e-mail en kun je aan de slag.

---

<div class="post-metadata">

**Author:** ![iplat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@iplat](https://www.ruby-forum.com/u/iplat)\
**Post date:** [August 18, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/asset-host-authentication/145587/4 "2008-08-18T19:47:24Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![iplat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ed655f/32.png) [@iplat](https://www.ruby-forum.com/u/iplat)\
**Post date:** [August 13, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/asset-host-authentication/145587/5 "2008-08-13T21:35:30Z")

</div>

The thing is, it’s on the same server. I have separate sub domains so  
that the browser can open more than 2 requests at a time. Here are the  
domains i have set up on the same server.

[asset0.mydomain.com](http://asset0.mydomain.com)  
[asset1.mydomain.com](http://asset1.mydomain.com)  
[asset2.mydomain.com](http://asset2.mydomain.com)

with the main host being

[webapp.mydomain.com](http://webapp.mydomain.com)

I’m processing images using RMagick in an action and some of these  
images can be confidential. So it must be done in an action. The  
problem is that for each asset host it prompts me with an HTTP basic  
authentication box. I imagine this might have something to do with the  
cookie store and domain. Any thoughts with this new information?

On Aug 13, 12:25 pm, Roderick van Domburg \<rails-mailing-l…@andreas-
