{"id":7757,"date":"2010-01-07T15:13:43","date_gmt":"2010-01-07T15:13:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-rails-authenticate\/"},"modified":"2010-02-14T15:23:11","modified_gmt":"2010-02-14T15:23:11","slug":"wp-rails-authenticate","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-rails-authenticate\/","author":44089,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"2.9.2","requires":"2.8.0","requires_php":"","requires_plugins":"","header_name":"WP Rails Authenticate","header_author":"James Stewart","header_description":"","assets_banners_color":"","last_updated":"2010-02-14 15:23:11","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=10973638","header_plugin_uri":"","header_author_uri":"http:\/\/jystewart.net\/process\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1322,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>This is the first version so I&#039;m the only one who&#039;ll be doing any upgrading.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[710,1917],"plugin_category":[38],"plugin_contributors":[91029],"plugin_business_model":[],"class_list":["post-7757","plugin","type-plugin","status-publish","hentry","plugin_tags-authentication","plugin_tags-users","plugin_category-authentication","plugin_contributors-jystewart","plugin_committers-jystewart"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-rails-authenticate.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Many people use wordpress to run blogs alongside their Ruby on Rails applications. And many \nRuby on Rails applications use very similar login systems, derived from the restful_authentication \nor clearance plugins. This plugin provides hooks so that your wordpress blog can read your rails \napp's database.yml file, connect to that database and authenticate the user against your rails app.<\/p>\n\n<p>This plugin requires the syck PHP extension for parsing yaml. Instructions for installing syck are available at\nhttp:\/\/trac.symfony-project.org\/wiki\/InstallingSyck<\/p>\n\n<h3>To Do<\/h3>\n\n<ul>\n<li>Add automated tests<\/li>\n<li>Solicit user feedback on further options<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>wp-rails-authenticate<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to the WP Rails Authenticate option under Settings and enter the path to your database.yml file<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>I use a different method of encryption to the default. How do I change it?<\/dt>\n<dd><p>To change encryption methods you will need to edit the plugin code. Override the function \nWP_Rails_Authentication#apply_encryption with your preferred encryption method.<\/p><\/dd>\n<dt>My blog is on the same domain as my rails app? Can I share sessions between them (single sign-on)?<\/dt>\n<dd><p>Due to ruby and PHP using different serialisation approaches we've not (yet) got an easy way to share \nsessions.<\/p><\/dd>\n<dt>My blog runs on a different server from my rails app. How do I share accounts between them?<\/dt>\n<dd><p>Providing your blog server can access the database, you simply need an appropriate database.yml file.<\/p><\/dd>\n<dt>Are there other approaches to this problem?<\/dt>\n<dd><p>Since this plugin was developed, the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/rails-integration-api\/\">Rails Integration API<\/a> \nplugin has been released. That requires you to add some API code to your rails app, but \nmay be easier if you want to keep all the encryption logic solely in rails or can't add an extra\nmodule to PHP.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Consolidated code in use in various projects<\/li>\n<li>Prepared for first release<\/li>\n<\/ul>","raw_excerpt":"Log users in against their accounts in a Ruby on Rails application.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7757"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jystewart"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7757"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7757"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7757"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7757"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7757"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}