Link to home
Start Free TrialLog in
Avatar of LZ1
LZ1Flag for United States of America

asked on

Can I pass Wordpress URL parameters to identify a user?

Hey Experts!!

Site A = Microsoft Azure platform
Site W = Wordpress platform

I have a bit of a dilemma. I have 2 sites, Site A and Site W. Site A is where all of my customer data is stored. Site W is where they will be purchasing products.
I control NOTHING on Site A, but have full control of Site W.  

My question is this:
If Site A can pass me URL variables, can I identify and possibly login users on my Wordpress site(Site W)?  I realize I may have to keep the user data in 2 separate places, but I'll have to tackle this later.  For now I just need to know if and how I can do this.
Avatar of Ishaan Rawat
Ishaan Rawat
Flag of India image

Avatar of LZ1

ASKER

I read the codex, however I don't want to update a user. Unless I misread, it seems I can only update their account.  Rather take them to a product page or at least their account page.
Avatar of Jason C. Levine
Surprisingly, WordPress is pretty weak on SSO and passthrough login solutions. The closest/best plugin to look into at this time is Keyring:

http://wordpress.org/plugins/keyring/

Alternately, you can bypass the wp-users table for an external database:

http://wordpress.org/plugins/external-db-auth-reloaded/

I have implemented something similar to the above plugin (also using the original external-db-auth abandoned plugin as the base) and it works very well.
Avatar of LZ1

ASKER

Thanks Jason, I'll definitely look into those.

Along the same note though, would there be a better way of going about all of this? Obviously besides having the same platform on the same domain for everything.
There really isn't.  Your problem is a fundamental one: the data isn't where it needs to be and you don't have enough control to implement a more granular solution.  So a login token or external authentication are your only choices.
Avatar of LZ1

ASKER

So where can I learn more about actually doing it? I've never done anything this "heavy".  Any tutorials or good articles you could recommend?

After that I'll close the question and then ask more specific questions as they come up.
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LZ1

ASKER

Thanks for all the info Jason. I haven't done anything like that yet of course. But I'll be looking into it this week.

Stay tuned, I'm sure this will be a lot of fun. Thanks again.