# Restful authentication question

**URL:** <https://www.ruby-forum.com/t/restful-authentication-question/183691>\
**Category:** Rails\
**Created:** [February 18, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/restful-authentication-question/183691 "2010-02-18T19:37:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dudebot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Post date:** [February 18, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/restful-authentication-question/183691/1 "2010-02-18T19:37:32Z")

</div>

Does anyone have experience with the restful authentication plugin  
git://github.com/technoweenie/restful-authentication.git  
?

I’m trying to access the logged in user’s name outside of the users  
controller. Any suggestions how to do this in a safe manner?

Many TIA,  
Craig

---

<div class="post-metadata">

**Author:** ![Dudebot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Post date:** [February 18, 2010, 7:51pm UTC](https://www.ruby-forum.com/t/restful-authentication-question/183691/2 "2010-02-18T19:51:56Z")

</div>

Dudebot wrote:

> I’m trying to access the logged in user’s name outside of the users  
> controller. Any suggestions how to do this in a safe manner?

current\_user.login

---

<div class="post-metadata">

**Author:** ![Dudebot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Post date:** [February 19, 2010, 4:11pm UTC](https://www.ruby-forum.com/t/restful-authentication-question/183691/3 "2010-02-19T16:11:04Z")

</div>

Marnen Laibow-Koser wrote:

> I’ve got lots of experience with restful\_auth – enough to know that it  
> depends on unmaintainable generated code and should not ever be used,  
> now that better alternatives exist. Try Authlogic instead. You’ll be a  
> lot happier.

+1

---

<div class="post-metadata">

**Author:** ![Dudebot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Post date:** [February 19, 2010, 6:03am UTC](https://www.ruby-forum.com/t/restful-authentication-question/183691/4 "2010-02-19T06:03:16Z")

</div>

Dudebot wrote:

> Does anyone have experience with the restful authentication plugin  
> git://github.com/technoweenie/restful-authentication.git  
> ?

I’ve got lots of experience with restful\_auth – enough to know that it  
depends on unmaintainable generated code and should not ever be used,  
now that better alternatives exist. Try Authlogic instead. You’ll be a  
lot happier.

> I’m trying to access the logged in user’s name outside of the users  
> controller. Any suggestions how to do this in a safe manner?
> 
> Many TIA,  
> Craig

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
