Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3691202
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:07:16+00:00 2026-05-19T04:07:16+00:00

I am trying to figure out how to sync authlogic persistence tokens across servers.

  • 0

I am trying to figure out how to sync authlogic persistence tokens across servers.

I have 4 servers, and I have many apps on all 4, the authentication is working across all the apps on one server. I can even get them to work on different servers if I copy the persistence token from one to the other 3.

The only issue I can think of is users may login to one server and not the other, but I still want them to be able to be synced in case they do go to that other server. For example:

Joe logs into server 1

Joe also logs into server 2

Jane only logs into server 1

Fred only logs into server 2

I would need a 2 way sync from each of the servers. I don’t care which persistence token they get as long as they are all the same.

This also uses LDAP for authentication in case that matters.

I am open to pretty much any suggestion, including something non-rails related.

Edit

To update this, I cannot remove LDAP authentication. I really have no desire to replace authlogic. I was thinking of something like a rake task or shell script to handle the syncing.

I am perfectly fine coming up with my own idea, just want to see if someone knows the best way.

Thank you all for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:07:16+00:00Added an answer on May 19, 2026 at 4:07 am

    You might really be looking for a central authentication service (CAS) — something that will enable Single Sign On (SSO).

    This enables you to log on to different services. It will work something like

    • User requests http://server1
    • server1 checks if the user is authenticated against the local store. If not:
    • server1 redirects user to something like http://casserver?return=server1
    • casserver actually gets the username/password or credentials, authenticates them, and:
    • casserver redirects to http://server1

    Then:

    • User requests http://server2
    • server2 redirects user to http://casserver?return=server2
    • casserver redirects user to http://server2 with the authtoken

    That way the user does not enter credentials more than once.

    OAuth works like this (over-simplified)

    People have used the java based CAS . Some posts:

    • http://weblog.plexobject.com/?p=1682
    • http://thinkrelevance.com/blog/2007/01/08/cas-sso-and-rails.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

trying to figure out why this is happening - I have an input text
I have a problem and Google hasn't helped me much. I'm trying figure out
Trying to figure out the MVC-concept. I have a NSCustomView that implements drawRect:, which
Trying to figure out the best way to have a templated brochure that creates
Im trying to figure out right now all my core data is managed on
I have got myself into a bit of a mess trying figure out the
Trying to figure out how I can do this properly. The print_r looks like
Trying to figure out why my silverlight app suddenly just displays nothing (right click
Trying to figure out how to type (via events not set the value) on
Trying to figure out a regex for validating a network path ie: \\comp\xyz or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.