​
Single sign on is nearly complete between an ROR app and Wp site. I’m running into issues with user migration. The ROR app has over 10,000 users while the WP site has less than 100 users (some may have accounts on the original ROR app). User emails are unique in both databases. So as a staring point I was going find the existing users from the WP site and migrate that data.
This [plugin]) is what I have tested on staging. I used it update an existing user. I didn’t import their rails id since I think this would conflict? If I import user 6 from ROR and if their is a WP user 6, but if they have different emails and are different users, then that would conflict? I’m unsure if it would be worth adding an extra column to WP user objects, like rails\_user\_id, or wp\_user\_id on Rails? Or is it enough to rely on email as a primary key? I understand this would be slower than numeric comparison…
Another issue is about migrating passwords. Devise uses bcrypt while WP uses MD5 hash. So I think my options are changing[WP to use bcrypt]) or simply generating new passwords and emailing users with a notification and reset password link. I’m using [miniOrange]) from what I understand WP will be the main database for authentication. I’m guessing there won’t be a need to update the Rails password?
Any advice would be appreciated or confirmation that I am headed in the right direction! Thank you!
[ad_2]