I've set up local domain with XAMPP 1.7.7 with my site at https://auth.local.lan

I followed tutorial Testing a two legged OAuth

Use this $url_prefix = 'https://auth.local.lan';

Placed the script oauth.php in my drupal root folder. Then execute with URL http://another.local.lan/oauth.php

The result is: no token is generated.

But, when I changed the url into $url_prefix = 'http://auth.local.lan'; (notice the http), I can see the access token is generated..

What is the solution for above problem?


bonn’s picture

I used this option for CURL to make it work:


Is this the best approach?

bonn’s picture

Status: Active » Fixed

nevermind, solved it myself

CrashTest_’s picture

bonn, what was your solution?

bonn’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.