Since the post: http://drupal.org/node/1666770 was very helpful to me, I decided to post this here.
I have been trying to set up OAuthconnector and OAuthloginprovider in Drupal 7. Because there isn't a lot of documentation at hands concerning OAuth and Drupal, I decided to create a step-by-step guide on it (which, I hope, might help others in the future) and I hope once this guide gets completed, it can serve as a base for more and better Drupal OAuth documentation.
The problem I experience in short: when I return from the provider site to the connector site, I don't get logged in.
The full howto can be found here: http://sneyers-pelgroms.com/2012/09/setting-up-oauth-in-drupal/.
Please revise and let me know what I have done wrong.
Comments
Comment #1
sneyerst commentedI have gotten the OAuth system to work between two Drupal 7 sites. I updated the blog post mentioned above accordingly. Should we still have this issue open or do we better create a new one for discussing the documenting of this module?
Comment #2
mehuls commentedFacing the same issue.
What I did is .... I created two drupal test sites assume provider.com and connector.com
In provider.com I enabled oauth and oauth login provider with dependency modules.
I create consumer key for one user.
I gone to the service menu and done configurations for Oauth login service.
Then I gone to connector.com and enabled oauth connector + connector module with required dependencies.
I created custom provider in oauth connector configurations.
Then enabled block for connector in visible region.
Problem :
When I click on "connect with provider" it takes me to the provider site , I log in there with user for which I created the consumer key and I return back to connector site, But I am still shown as logged out. I also get access token in url.
Comment #3
mehuls commentedCould you provide the resolution that solved your problem?
Comment #4
cloudbull commentedThe link
http://sneyers-pelgroms.com/2012/09/setting-up-oauth-in-drupal/
is broken, anyone can post the solution again ?
I have the same situation with #2
thanks
Keith
Comment #5
z.stolar commentedWould also like to read the broken-link post...
Comment #6
zonesny commentedHi. I was under the (seemingly mistaken) impression that OAuthconnector would function much like oneall or janrain engage, and allow a user to log in using his/her existing service registration (without having to first register on my drupal site). However, I seem to be facing the same issue as #2. I have configured Twitter and Facebook providers. When using either "connect" button, I am redirected to the service provider's oauth url. After granting permission to my client app, I am redirected to my site's login page, where it says I am authorized, but I am still not logged in.
I think the project description needs to be clarified, unless I have misconfigured/misconstrued something. If so, please clarify. Thanks.
OAuth Connector 7.x-1.0-beta2
Comment #7
matt2000 commentedhttps://web.archive.org/web/20130125022252/http://sneyers-pelgroms.com/2...
Comment #8
matt2000 commented