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?
thanks.

Comments

I used this option for CURL to make it work:

CURLOPT_SSL_VERIFYPEER => false

Is this the best approach?

Status:Active» Fixed

nevermind, solved it myself

bonn, what was your solution?

Status:Fixed» Closed (fixed)

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