# Trac authentication failing

**URL:** <https://www.ruby-forum.com/t/trac-authentication-failing/213751>\
**Category:** NGINX\
**Created:** [November 10, 2011, 6:18pm UTC](https://www.ruby-forum.com/t/trac-authentication-failing/213751 "2011-11-10T18:18:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 10, 2011, 6:18pm UTC](https://www.ruby-forum.com/t/trac-authentication-failing/213751/1 "2011-11-10T18:18:43Z")

</div>

I am running Trac inside uWSGI, with nginx as front-end server. I have  
also set up basic http authentication in nginx. Now, theoretically,  
when authenticated in nginx, Trac should recognize the user and  
display its name, identify the new tickets, etc. But that is not  
happening.

How can make sure the authentication information is being sent to  
uWSGI and received by Trac?

–  
Lucas Clemente Vella  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Lucas\_Clemente\_Vell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@Lucas\_Clemente\_Vell](https://www.ruby-forum.com/u/Lucas_Clemente_Vell)\
**Post date:** [November 10, 2011, 7:54pm UTC](https://www.ruby-forum.com/t/trac-authentication-failing/213751/2 "2011-11-10T19:54:00Z")

</div>

> I am running Trac inside uWSGI, with nginx as front-end server. I have  
> also set up basic http authentication in nginx. Now, theoretically,  
> when authenticated in nginx, Trac should recognize the user and  
> display its name, identify the new tickets, etc. But that is not  
> happening.
> 
> How can make sure the authentication information is being sent to  
> uWSGI and received by Trac?

Be sure to have

uwsgi\_param REMOTE\_USER $remote\_user

in your config or includes file

–  
Roberto De Ioris

> **[unbit - Overview](https://github.com/unbit)**
>
> makers of uWSGI and many more open source projects - unbit

---

<div class="post-metadata">

**Author:** ![Lucas\_Clemente\_Vell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@Lucas\_Clemente\_Vell](https://www.ruby-forum.com/u/Lucas_Clemente_Vell)\
**Post date:** [November 11, 2011, 12:30am UTC](https://www.ruby-forum.com/t/trac-authentication-failing/213751/3 "2011-11-11T00:30:59Z")

</div>

2011/11/10 Roberto De Ioris [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Be sure to have
> 
> uwsgi\_param REMOTE\_USER $remote\_user
> 
> in your config or includes file

Like a charm.

Thanks!

–  
Lucas Clemente Vella  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
