chiro-canto/public/api/v1/oauth2/index.php
2021-04-15 12:29:53 +02:00

15 lines
562 B
PHP
Executable File

<?php
define("CALLBACK_URL", "https://chiro-canto.ortion.xyz/api/v1/oauth2/oauth2client.php");
define("AUTH_URL", "https://chiro-canto.ortion.xyz/api/v1/oauth2/authorize");
define("ACCESS_TOKEN_URL", "https://chiro-canto.ortion.xyz/api/v1/oauth2/token");
define("CLIENT_ID", "wsdfdcjdfvsfdvqwdi86Ubdf0");
define("CLIENT_SECRET", "g2OKQ9isj2pcaextQdjx5xW3KoAa");
define("SCOPE", ""); // optional
$url = AUTH_URL."?"
."response_type=code"
."&client_id".urlencode(CLIENT_ID)
."&scope=".urlencode(SCOPE)
."&redirect_uri".urlencode(CALLBACK_URL)
;
?>