stop setting global auth_endpoint, passing it in as a params works, now
Merge commit 'c666b79f33be156cfcd63d597cfadd885086e48d'