diff --git a/get_oauth_token.php b/get_oauth_token.php index 961db531..cbce8937 100644 --- a/get_oauth_token.php +++ b/get_oauth_token.php @@ -46,23 +46,22 @@ use Hayageek\OAuth2\Client\Provider\Yahoo; use Stevenmaguire\OAuth2\Client\Provider\Microsoft; if (!isset($_GET['code']) && !isset($_POST['provider'])) { - ?> +?>

Select Provider

- -
- -
- -
-

Provide id and secret

-

These details are obtained by setting up an app in the Google developer console, - or whichever provider you're using. -

- ClientId:
- ClientSecret:
+ +
+ +
+ +
+

Enter id and secret

+

These details are obtained by setting up an app in your provider's developer console. +

+

ClientId:

+

ClientSecret:

@@ -92,8 +91,7 @@ if (array_key_exists('provider', $_POST)) { $clientSecret = $_SESSION['clientSecret']; } -//These details are obtained by setting up an app in the Google developer console, -//or whichever provider you're using. +//If you don't want to use the built-in form, set your client id and secret here //$clientId = 'RANDOMCHARS-----duv1n2.apps.googleusercontent.com'; //$clientSecret = 'RANDOMCHARS-----lGyjPcRtvP';