Title: WP Rails Authenticate
Author: jystewart
Published: <strong>January 7, 2010</strong>
Last modified: February 14, 2010

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-rails-authenticate.svg)

# WP Rails Authenticate

 By [jystewart](https://profiles.wordpress.org/jystewart/)

[Download](https://downloads.wordpress.org/plugin/wp-rails-authenticate.zip)

 * [Details](https://wordpress.org/plugins/wp-rails-authenticate/#description)
 * [Reviews](https://wordpress.org/plugins/wp-rails-authenticate/#reviews)
 *  [Installation](https://wordpress.org/plugins/wp-rails-authenticate/#installation)
 * [Development](https://wordpress.org/plugins/wp-rails-authenticate/#developers)

 [Support](https://wordpress.org/support/plugin/wp-rails-authenticate/)

## Description

Many people use wordpress to run blogs alongside their Ruby on Rails applications.
And many
 Ruby on Rails applications use very similar login systems, derived from
the restful_authentication or clearance plugins. This plugin provides hooks so that
your wordpress blog can read your rails app’s database.yml file, connect to that
database and authenticate the user against your rails app.

This plugin requires the syck PHP extension for parsing yaml. Instructions for installing
syck are available at
 http://trac.symfony-project.org/wiki/InstallingSyck

### To Do

 * Add automated tests
 * Solicit user feedback on further options

## Installation

 1. Upload `wp-rails-authenticate` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to the WP Rails Authenticate option under Settings and enter the path to your
    database.yml file

## FAQ

  I use a different method of encryption to the default. How do I change it?

To change encryption methods you will need to edit the plugin code. Override the
function
 WP_Rails_Authentication#apply_encryption with your preferred encryption
method.

  My blog is on the same domain as my rails app? Can I share sessions between them(
single sign-on)?

Due to ruby and PHP using different serialisation approaches we’ve not (yet) got
an easy way to share
 sessions.

  My blog runs on a different server from my rails app. How do I share accounts 
between them?

Providing your blog server can access the database, you simply need an appropriate
database.yml file.

  Are there other approaches to this problem?

Since this plugin was developed, the [Rails Integration API](https://wordpress.org/extend/plugins/rails-integration-api/)

plugin has been released. That requires you to add some API code to your rails app,
but may be easier if you want to keep all the encryption logic solely in rails or
can’t add an extra module to PHP.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“WP Rails Authenticate” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ jystewart ](https://profiles.wordpress.org/jystewart/)

[Translate “WP Rails Authenticate” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-rails-authenticate)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-rails-authenticate/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-rails-authenticate/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-rails-authenticate/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-rails-authenticate/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Consolidated code in use in various projects
 * Prepared for first release

## Meta

 *  Version **1.0**
 *  Last updated **16 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 2.8.0 or higher **
 *  Tested up to **2.9.2**
 * Tags
 * [authentication](https://wordpress.org/plugins/tags/authentication/)[users](https://wordpress.org/plugins/tags/users/)
 *  [Advanced View](https://wordpress.org/plugins/wp-rails-authenticate/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-rails-authenticate/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-rails-authenticate/reviews/)

## Contributors

 *   [ jystewart ](https://profiles.wordpress.org/jystewart/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-rails-authenticate/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=10973638)