# Authenticating using wordpress authentication system

**URL:** <https://www.ruby-forum.com/t/authenticating-using-wordpress-authentication-system/147383>\
**Category:** Rails\
**Created:** [September 1, 2008, 10:18am UTC](https://www.ruby-forum.com/t/authenticating-using-wordpress-authentication-system/147383 "2008-09-01T10:18:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Love\_AJAX](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/779978/32.png) [@Love\_AJAX](https://www.ruby-forum.com/u/Love_AJAX)\
**Post date:** [September 1, 2008, 10:18am UTC](https://www.ruby-forum.com/t/authenticating-using-wordpress-authentication-system/147383/1 "2008-09-01T10:18:04Z")

</div>

Hi,

I have integrated wordpress into a rails application. I am using Rails  
to build a few additional applications on top of Wordpress. Wordpress  
already has a user authentication system. I want to make use of this  
system and let Wordpress do the user management instead of building  
another one in Rails app. But Wordpress authentication is build using  
PHP. So I can’t directly call those functions in my Rails app. What’s  
the best way to solve this?

Thanks much.

---

<div class="post-metadata">

**Author:** ![Love\_AJAX](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/779978/32.png) [@Love\_AJAX](https://www.ruby-forum.com/u/Love_AJAX)\
**Post date:** [September 23, 2008, 9:42am UTC](https://www.ruby-forum.com/t/authenticating-using-wordpress-authentication-system/147383/2 "2008-09-23T09:42:28Z")

</div>

I am looking for the same thing (using Wordpress authentication in a  
Rails application) - Did anybody solve this already?

Reading the Wordpress documentation it seems solvable - access the  
wordpress database from the Rails application, duplication the  
wordpress cookie handling to have single sign on. However, it would be  
nice to use some code already doing this instead of starting from  
scratch 😉
