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
$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?