# Advanced authenticated system

**URL:** <https://www.ruby-forum.com/t/advanced-authenticated-system/156918>\
**Category:** Rails\
**Created:** [January 5, 2009, 11:17am UTC](https://www.ruby-forum.com/t/advanced-authenticated-system/156918 "2009-01-05T11:17:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![konstantin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/858c86/32.png) [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Post date:** [January 5, 2009, 11:17am UTC](https://www.ruby-forum.com/t/advanced-authenticated-system/156918/1 "2009-01-05T11:17:26Z")

</div>

Hello!

I’m looking for an authenticated system with namespaces and subdomains  
support.  
I want to make: [admin.site.com](http://admin.site.com), [manager.site.com](http://manager.site.com), etc  
Every admin can have different roles, f.i. admin\_a can list users,  
admin\_b can list, add and update, admin\_c can list, add/update and  
delete users.

I have studied Typo and Mephisto, but both of them doesn’t use  
subdomains and namespaces. They have so complex routing files…  
Actually I have lost in them.

Could you suggest a ready-to-use solution for this task?

---

<div class="post-metadata">

**Author:** ![konstantin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/858c86/32.png) [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Post date:** [January 5, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/advanced-authenticated-system/156918/2 "2009-01-05T14:58:45Z")

</div>

I have tried 2 plugins: subdomain-fu + Restful authentication,  
currently without any success.  
If you have a working example for this issue - it will be highly  
appreciated!

---

<div class="post-metadata">

**Author:** ![konstantin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/858c86/32.png) [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Post date:** [January 5, 2009, 4:24pm UTC](https://www.ruby-forum.com/t/advanced-authenticated-system/156918/3 "2009-01-05T16:24:37Z")

</div>

Did you see: [#123 Subdomains - RailsCasts](http://railscasts.com/episodes/123-subdomains) ?

Cheers, Sazima

---

<div class="post-metadata">

**Author:** ![konstantin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/858c86/32.png) [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Post date:** [January 5, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/advanced-authenticated-system/156918/4 "2009-01-05T17:22:13Z")

</div>

subdomain-fu  
restful authentication (check out the bells and whistles version  
[http://railsforum.com/viewtopic.php?id=14216](http://railsforum.com/viewtopic.php?id=14216))  
role requirement (part of the above)  
and then you make some before\_filters to enforce which users have  
access to which subdomains ?

i don’t know if my blog post about subdomain can help you:

> **[Subdomains and rails](https://elisehuard.wordpress.com/2008/10/08/subdomains-and-rails/)**
>
> We’re working on a system using subdomains as an account key.  This common, but still cool feature allows people to have their own virtual webspace, adding their own subdomain, say elise.ilik…

I don’t think you’ll find it out of the box, but with some minor  
hacking it should be possible to get what you want …
